Преглед на файлове

开启推送默认进行APP提醒

zhangdongming преди 2 години
родител
ревизия
11c071ee2a
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  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)