This commit is contained in:
xyj 2024-03-04 15:52:54 +08:00
parent cd68bdfb01
commit fd0618b83f
1 changed files with 4 additions and 4 deletions

View File

@ -161,7 +161,7 @@ async def register(request: Request):
send_json = create_register_sql(iccid, deviceId, type)
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
res.append(r.json())
# 插入设备状态表,只有新注册的才会插入设备表
# TODO 插入设备状态表,如果状态表有,那么不插入设备表,如果状态表没有,则插入
send_json = insert_device_status_sql(iccid, clientid, deviceId)
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
res.append(r.json())