From 142c31a322884486507a33985603713446c9e642 Mon Sep 17 00:00:00 2001 From: 997146918 <997146918@qq.com> Date: Mon, 7 Jul 2025 17:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9character=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AIGC/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AIGC/main.py b/AIGC/main.py index 4c0148f..9dfd16d 100644 --- a/AIGC/main.py +++ b/AIGC/main.py @@ -90,7 +90,9 @@ async def handle_characterlist(client: WebSocket): protocol["cmd"] = "CharacterList" protocol["status"] = 1 protocol["message"] = "success" - protocol["data"] = json.dumps(characters) + characterforUE = {} + characterforUE["characterInfos"] = characters + protocol["data"] = json.dumps(characterforUE) await senddata(client, protocol) async def process_protocol_json(json_str: str, client: WebSocket):