This commit is contained in:
zhinianboke 2025-08-13 18:32:58 +08:00
parent 8d95fe8a4d
commit 8cea77f05d
2 changed files with 0 additions and 8 deletions

View File

@ -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:

View File

@ -121,13 +121,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('''
CREATE TABLE IF NOT EXISTS keywords (