Parcourir la source

修复时区异常

tanghongbin il y a 5 ans
Parent
commit
6a1a937eaf
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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)
             # 发送内容