Ver Fonte

修复时区异常

tanghongbin há 5 anos atrás
pai
commit
6a1a937eaf
1 ficheiros alterados com 2 adições e 0 exclusões
  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)
             # 发送内容