From bafd5eb5ac5fc1204419f616912b4fc7a9d90905 Mon Sep 17 00:00:00 2001 From: xyj <10908227994@qq.com> Date: Thu, 25 Jan 2024 10:10:11 +0800 Subject: [PATCH] update --- xumu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xumu.py b/xumu.py index b02b65f..b215e0c 100644 --- a/xumu.py +++ b/xumu.py @@ -36,7 +36,7 @@ class DataQuery(BaseModel): async def data_query(params: DataQuery): try: deviceId = params.deviceId - if deviceId == None or deviceId == "": + if deviceId is None or deviceId == "" or len(deviceId) != 4: return BaseResponse(code=500, msg="参数错误") sql = f"select last * from root.farm.{deviceId}" send_json = {