浏览代码

优化定时器任务

peng 1 年之前
父节点
当前提交
73720438f6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/SensorGateway/SmartSwitchController.py

+ 1 - 1
Controller/SensorGateway/SmartSwitchController.py

@@ -430,7 +430,7 @@ class SmartSwitchView(View):
             redis_obj = RedisObject()
             timer_info = redis_obj.get_all_hash_data(key)
             if not timer_info:
-                return response.json(0)
+                return response.json(173)
             return response.json(0, timer_info)
         except Exception as e:
             print(e)