Procházet zdrojové kódy

替换推送tz的GMT字符

chenshibin před 4 roky
rodič
revize
08a502cbd6

+ 2 - 0
Controller/DetectController.py

@@ -176,6 +176,8 @@ class DetectControllerView(View):
         # 如果传空上来,就默认为0
         if tz == '':
             tz = 0
+        else:
+            tz = tz.replace("GMT", "")
         detect_group = request_dict.get('detect_group', None)
         interval = request_dict.get('interval', None)
         if not status:

+ 2 - 0
Controller/DetectControllerV2.py

@@ -108,6 +108,8 @@ class DetectControllerViewV2(View):
         # 如果传空上来,就默认为0
         if tz == '':
             tz = 0
+        else:
+            tz = tz.replace("GMT", "")
         detect_group = request_dict.get('detect_group', None)
         interval = request_dict.get('interval', None)
         if not status: