From ad8d7d069c5e2e6e8d70b77b1e032c85db000d37 Mon Sep 17 00:00:00 2001 From: CakeCN Date: Thu, 8 Jan 2026 23:54:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Html/apps/services/asectrl_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Html/apps/services/asectrl_service.py b/Html/apps/services/asectrl_service.py index 6810185..9680b60 100644 --- a/Html/apps/services/asectrl_service.py +++ b/Html/apps/services/asectrl_service.py @@ -1,6 +1,4 @@ import requests -from flask_socketio import Namespace - def clear_user_session(asengine_url, asengine_token, user_id): ''' @@ -32,6 +30,8 @@ def on_connect_to_ase(client, entry, init_data, **kwargs): print("on_connect_to_ase", init_data) namespace_entry.emit('open-iframe',"", room=init_data['room'], namespace='/agent') namespace_entry.emit('message', "Agents服务已连接, 加载教案中", room=init_data['room'], namespace='/agent') + namespace_entry.emit('message', f'{init_data}', room=init_data['room'], namespace='/agent') + restart = init_data.get("restart", False) # 不再需要手动next_chapter,因为已经在on_login中根据mongo进度恢复了正确的章节