Kaynağa Gözat

开启推送默认进行APP提醒

zhangdongming 2 yıl önce
ebeveyn
işleme
11c071ee2a
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  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)