From f9af3434dba506ca7f88d90f17886daf6aed86f5 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 25 Jan 2024 09:47:30 +0800 Subject: [PATCH] update --- xumu.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xumu.py b/xumu.py index d59d6a7..cda8103 100644 --- a/xumu.py +++ b/xumu.py @@ -89,6 +89,7 @@ async def register(request: Request): payload = json.loads(payload) send_len = payload["l"] if receive_len != send_len: + print(receive_len) return BaseResponse(code=301, msg=f"data valid error, receive_len:{receive_len}") deviceId = payload["d"] iccid = payload["cid"] @@ -96,6 +97,7 @@ async def register(request: Request): # 该设备是否已经创建 device = Device(iccid=iccid, deviceId=deviceId, type=type) a_device = await get_device(device) + print(a_device) if a_device.code == 200: v = a_device.data["values"] if len(v) != 0: @@ -120,6 +122,7 @@ async def register(request: Request): } r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json) res.append(r.json()) + print(res) return BaseResponse(data=res) except Exception as e: return BaseResponse(code=500, msg=str(e))