This commit is contained in:
xyj 2024-01-28 16:53:54 +08:00
parent 3bdd00bb2c
commit bb1a8623e2
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,7 @@ async def register(request: Request):
res.append(r.json()) res.append(r.json())
# 插入设备状态表 # 插入设备状态表
send_json = { send_json = {
"sql": f"insert into root.farm.clientId(iccid, clientId, is_online, deviceId) values('{iccid}','{clientid}', False, '{deviceId}')" "sql": f"insert into root.farm.clientId(iccid, clientId, is_online, deviceId) values('{iccid}','{clientid}', True, '{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())