update
This commit is contained in:
parent
5260cadf6c
commit
5c681a56af
4
xumu.py
4
xumu.py
|
@ -262,10 +262,8 @@ async def process_data(request: Request):
|
|||
print(clientid + "======" + event)
|
||||
pattern = r'^farm_[a-zA-Z0-9]{12}$'
|
||||
amatch1 = re.match(pattern, clientid)
|
||||
pattern = r'^test'
|
||||
amatch2 = re.match(pattern, clientid)
|
||||
# 如果两个都不满足,那就错误
|
||||
if not amatch1 and not amatch2:
|
||||
if not amatch1:
|
||||
return BaseResponse(code=200, msg="error")
|
||||
# 连接成功处理
|
||||
if event == "client.connected":
|
||||
|
|
Loading…
Reference in New Issue