From 553eb7a2c50538dd206e0390e6a5301756744a93 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Fri, 26 Jan 2024 16:57:34 +0800 Subject: [PATCH] update --- xumu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xumu.py b/xumu.py index 91e0268..b51574e 100644 --- a/xumu.py +++ b/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}'"