From 981f8d0ba4467d26abd475da645e5b82374b0282 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Fri, 26 Jan 2024 17:09:28 +0800 Subject: [PATCH] update --- xumu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xumu.py b/xumu.py index b51574e..e962553 100644 --- a/xumu.py +++ b/xumu.py @@ -261,6 +261,8 @@ async def process_data(request: Request): data = json.loads(data) event = data["event"] clientid = data["clientid"] + if not clientid.startswith("farm"): + return BaseResponse(code=500, msg="不符合畜牧clientId") # 连接成功处理 if event == "client.connected": return await client_change_status(clientid, True)