Browse Source

开启推送默认进行APP提醒

zhangdongming 2 years ago
parent
commit
11c071ee2a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Controller/DetectControllerV2.py

+ 3 - 0
Controller/DetectControllerV2.py

@@ -173,6 +173,9 @@ 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
                 uid_set_id = uid_set_qs[0].id
                 uid_set_data['updTime'] = nowTime
                 uid_set_qs.update(**uid_set_data)