mirror of
https://github.com/zhinianboke/xianyu-auto-reply.git
synced 2025-08-30 01:27:35 +08:00
回退
This commit is contained in:
parent
8d95fe8a4d
commit
8cea77f05d
@ -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:
|
||||
|
@ -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('''
|
||||
|
Loading…
x
Reference in New Issue
Block a user