chanjunkai 5 năm trước cách đây
mục cha
commit
67a57d9035
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      Controller/DetectController.py

+ 3 - 0
Controller/DetectController.py

@@ -170,6 +170,9 @@ class DetectControllerView(View):
         lang = request_dict.get('lang', 'en')
         tz = request_dict.get('tz', '0')
         # 消息提醒功能新增
+        # 如果传空上来,就默认为0
+        if tz=='':
+            tz=0
         detect_group = request_dict.get('detect_group', None)
         interval = request_dict.get('interval', None)
         if not status: