Selaa lähdekoodia

替换推送tz的GMT字符

chenshibin 4 vuotta sitten
vanhempi
commit
08a502cbd6
2 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  1. 2 0
      Controller/DetectController.py
  2. 2 0
      Controller/DetectControllerV2.py

+ 2 - 0
Controller/DetectController.py

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

+ 2 - 0
Controller/DetectControllerV2.py

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