update
This commit is contained in:
parent
553eb7a2c5
commit
981f8d0ba4
2
xumu.py
2
xumu.py
|
@ -261,6 +261,8 @@ 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"]
|
||||||
|
if not clientid.startswith("farm"):
|
||||||
|
return BaseResponse(code=500, msg="不符合畜牧clientId")
|
||||||
# 连接成功处理
|
# 连接成功处理
|
||||||
if event == "client.connected":
|
if event == "client.connected":
|
||||||
return await client_change_status(clientid, True)
|
return await client_change_status(clientid, True)
|
||||||
|
|
Loading…
Reference in New Issue