fix clear session

This commit is contained in:
CakeCN
2025-12-11 22:40:43 +08:00
parent c4743bcadd
commit 58a25b3e07
2 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,6 @@ def on_connect_to_ase(client, entry, init_data, **kwargs):
restart = init_data.get("restart", False)
if restart: # 重启时,从-1章进入 0章
clear_user_session(init_data['asengine_url'], init_data['asengine_token'], init_data['room'])
ase_client.chatmanager.next_chapter()
ase_client.chatmanager.load_now_chapter(load_code=restart)
print("load_now_chapter with restart:", restart)