From f59752a7bb2bf72d5f02c3f6276e25feb5443a7b Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Fri, 26 Jan 2024 17:17:34 +0800 Subject: [PATCH] update --- xumu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xumu.py b/xumu.py index 9f35ceb..2fbfa84 100644 --- a/xumu.py +++ b/xumu.py @@ -262,7 +262,7 @@ async def process_data(request: Request): event = data["event"] clientid = data["clientid"] print(clientid) - if not clientid.startswith("farm") or not clientid.startswith("test"): + if not str(clientid).startswith("farm") or not str(clientid).startswith("test"): return BaseResponse(code=500, msg="不符合畜牧clientId") # 连接成功处理 if event == "client.connected":