fixed
This commit is contained in:
parent
cd68bdfb01
commit
fd0618b83f
8
xumu.py
8
xumu.py
|
@ -161,10 +161,10 @@ async def register(request: Request):
|
||||||
send_json = create_register_sql(iccid, deviceId, type)
|
send_json = create_register_sql(iccid, deviceId, type)
|
||||||
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
|
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
|
||||||
res.append(r.json())
|
res.append(r.json())
|
||||||
# 插入设备状态表,只有新注册的才会插入设备表
|
# TODO 插入设备状态表,如果状态表有,那么不插入设备表,如果状态表没有,则插入
|
||||||
send_json = insert_device_status_sql(iccid, clientid, deviceId)
|
send_json = insert_device_status_sql(iccid, clientid, deviceId)
|
||||||
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
|
r = requests.post(baseHost + nonQueryUri, headers=headers, json=send_json)
|
||||||
res.append(r.json())
|
res.append(r.json())
|
||||||
else:
|
else:
|
||||||
return BaseResponse(code=500, msg="500 Internal error")
|
return BaseResponse(code=500, msg="500 Internal error")
|
||||||
# 创建相应的数据库和字段
|
# 创建相应的数据库和字段
|
||||||
|
|
Loading…
Reference in New Issue