修改character数据格式

This commit is contained in:
997146918 2025-07-07 17:18:41 +08:00
parent 9fcd390366
commit 142c31a322

View File

@ -90,7 +90,9 @@ async def handle_characterlist(client: WebSocket):
protocol["cmd"] = "CharacterList" protocol["cmd"] = "CharacterList"
protocol["status"] = 1 protocol["status"] = 1
protocol["message"] = "success" protocol["message"] = "success"
protocol["data"] = json.dumps(characters) characterforUE = {}
characterforUE["characterInfos"] = characters
protocol["data"] = json.dumps(characterforUE)
await senddata(client, protocol) await senddata(client, protocol)
async def process_protocol_json(json_str: str, client: WebSocket): async def process_protocol_json(json_str: str, client: WebSocket):