update
This commit is contained in:
parent
a825e4c6d3
commit
f59752a7bb
2
xumu.py
2
xumu.py
|
@ -262,7 +262,7 @@ async def process_data(request: Request):
|
||||||
event = data["event"]
|
event = data["event"]
|
||||||
clientid = data["clientid"]
|
clientid = data["clientid"]
|
||||||
print(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")
|
return BaseResponse(code=500, msg="不符合畜牧clientId")
|
||||||
# 连接成功处理
|
# 连接成功处理
|
||||||
if event == "client.connected":
|
if event == "client.connected":
|
||||||
|
|
Loading…
Reference in New Issue