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('''