Sfoglia il codice sorgente

修复时区异常

tanghongbin 5 anni fa
parent
commit
6a1a937eaf
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      Controller/DetectController.py

+ 2 - 0
Controller/DetectController.py

@@ -182,6 +182,8 @@ class NotificationView(View):
             token_val = up['token_val']
             lang = up['lang']
             tz = up['tz']
+            if tz is None or tz == '':
+                tz = 0
             # 发送标题
             msg_title = self.get_msg_title(appBundleId=appBundleId, nickname=nickname)
             # 发送内容