From 5c681a56afc90c1736ae5b4f37dd7857d1c73868 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Sun, 28 Jan 2024 16:24:54 +0800 Subject: [PATCH] update --- xumu.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xumu.py b/xumu.py index ab5bfa8..2587d1a 100644 --- a/xumu.py +++ b/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":