update
This commit is contained in:
parent
8e27d64b18
commit
8c43382caf
5
main.py
5
main.py
|
@ -118,12 +118,11 @@ async def process_data(request: Request):
|
|||
data = json.loads(data)
|
||||
payload = data["payload"]
|
||||
receive_len = len(payload)
|
||||
print(receive_len)
|
||||
payload = json.loads(payload)
|
||||
send_len = payload["l"]
|
||||
if receive_len != send_len:
|
||||
print("校验错误")
|
||||
return 301
|
||||
print("校验错误,收到的消息长度:", receive_len)
|
||||
return BaseResponse(code=301, msg="data valid error")
|
||||
m = payload["m"]
|
||||
v = payload["v"]
|
||||
cid = v[0]
|
||||
|
|
Loading…
Reference in New Issue