Quellcode durchsuchen

开启推送重置消息提醒配置

zhangdongming vor 1 Jahr
Ursprung
Commit
05b0e0fa48
1 geänderte Dateien mit 1 neuen und 4 gelöschten Zeilen
  1. 1 4
      Controller/DetectControllerV2.py

+ 1 - 4
Controller/DetectControllerV2.py

@@ -174,10 +174,7 @@ class DetectControllerViewV2(View):
                 if status == 0 and msg_data:
                     msg_data['appPush'] = -1
                     uid_set_data['msg_notify'] = msg_data
-                elif status == 1 and msg_data:
-                    msg_data['appPush'] = 1
-                    uid_set_data['msg_notify'] = msg_data
-                elif status == 1 and not msg_data:
+                elif status == 1:
                     msg_data = {'appPush': 1,
                                 'pushTime': {'allDay': 1, 'repeat': 127, 'endTime': 0, 'timeZone': '+08.00',
                                              'startTime': 0},