This commit is contained in:
xyj 2024-01-26 17:16:08 +08:00
parent c05ff85518
commit a825e4c6d3
1 changed files with 1 additions and 0 deletions

View File

@ -261,6 +261,7 @@ async def process_data(request: Request):
data = json.loads(data) data = json.loads(data)
event = data["event"] event = data["event"]
clientid = data["clientid"] clientid = data["clientid"]
print(clientid)
if not clientid.startswith("farm") or not clientid.startswith("test"): if not clientid.startswith("farm") or not clientid.startswith("test"):
return BaseResponse(code=500, msg="不符合畜牧clientId") return BaseResponse(code=500, msg="不符合畜牧clientId")
# 连接成功处理 # 连接成功处理