Browse Source

优化定时器任务

peng 1 year ago
parent
commit
73720438f6
1 changed files with 1 additions and 1 deletions
  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)