This commit is contained in:
xyj 2024-01-28 17:05:16 +08:00
parent bb1a8623e2
commit 66778dacaf
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ async def process_data(request: Request):
event = data["event"] event = data["event"]
clientid = data["clientid"] clientid = data["clientid"]
# print(clientid + "======" + event) # print(clientid + "======" + event)
pattern = r'^farm_[a-zA-Z0-9]{12}$' pattern = r'^f\d{1,10}$'
amatch1 = re.match(pattern, clientid) amatch1 = re.match(pattern, clientid)
# 如果两个都不满足,那就错误 # 如果两个都不满足,那就错误
if not amatch1: if not amatch1: