From 8cea77f05dce4a9083607b4ad057606f7619f36d Mon Sep 17 00:00:00 2001 From: zhinianboke <115088296+zhinianboke@users.noreply.github.com> Date: Wed, 13 Aug 2025 18:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- XianyuAutoAsync.py | 1 - db_manager.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/XianyuAutoAsync.py b/XianyuAutoAsync.py index 0362dbf..808fa01 100644 --- a/XianyuAutoAsync.py +++ b/XianyuAutoAsync.py @@ -753,7 +753,6 @@ class XianyuLive: if hasattr(self, 'user_id') and self.user_id: current_user_id = self.user_id - # 保存cookies和token信息 db_manager.save_cookie(self.cookie_id, self.cookies_str, current_user_id) logger.debug(f"已更新Cookie到数据库: {self.cookie_id}") except Exception as e: diff --git a/db_manager.py b/db_manager.py index 0238251..5db8d8a 100644 --- a/db_manager.py +++ b/db_manager.py @@ -120,13 +120,6 @@ class DBManager: ) ''') - - try: - cursor.execute('ALTER TABLE cookies ADD COLUMN current_token TEXT DEFAULT ""') - logger.info("已为cookies表添加current_token字段") - except sqlite3.OperationalError: - # 字段已存在,忽略错误 - pass # 创建keywords表 cursor.execute('''