update
This commit is contained in:
parent
b63c68e1f8
commit
553eb7a2c5
2
xumu.py
2
xumu.py
|
@ -28,7 +28,7 @@ async def data_query(username):
|
|||
@app.get("/api/xumu/device/online")
|
||||
async def device_online_query(iccid, deviceId):
|
||||
try:
|
||||
sql = "select is_online from root.farm.clientId where time >= 0"
|
||||
sql = "select * from root.farm.clientId where time >= 0"
|
||||
# 检查iccid是否有值,如果有,添加到SQL语句中
|
||||
if iccid:
|
||||
sql += f" and iccid = '{iccid}'"
|
||||
|
|
Loading…
Reference in New Issue