This commit is contained in:
xyj 2024-01-26 17:20:08 +08:00
parent c43f258b8c
commit 42ad6f07ac
1 changed files with 1 additions and 1 deletions

View File

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