update
This commit is contained in:
parent
0b1c26711b
commit
35d9db5ec7
3
xumu.py
3
xumu.py
|
@ -259,13 +259,12 @@ async def process_data(request: Request):
|
|||
data = json.loads(data)
|
||||
event = data["event"]
|
||||
clientid = data["clientid"]
|
||||
print(clientid + "======" + event)
|
||||
# print(clientid + "======" + event)
|
||||
pattern = r'^f\d{1,10}$'
|
||||
amatch1 = re.match(pattern, clientid)
|
||||
# 如果两个都不满足,那就错误
|
||||
if not amatch1:
|
||||
return BaseResponse(code=200, msg="error")
|
||||
print("判断成功")
|
||||
# 连接成功处理
|
||||
if event == "client.connected":
|
||||
return await client_change_status(clientid, True)
|
||||
|
|
Loading…
Reference in New Issue