瀏覽代碼

分享用户保存推送信息

peng 11 月之前
父節點
當前提交
f745687293
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      Controller/DeviceShare.py

+ 3 - 4
Controller/DeviceShare.py

@@ -230,10 +230,9 @@ class DeviceShareView(View):
                                                             m_code=item[5], lang=item[6], tz=item[7], addTime=now_time,
                                                             updTime=now_time, uid_set_id=uid_set_id)
                         else:
-                            gateway_push_qs = GatewayPush.objects.filter(user_id=userID).values('app_app_id', 'm_code',
-                                                                                                'app_type', 'push_type',
-                                                                                                'token_val', 'lang',
-                                                                                                'jg_token_val', 'tz')
+                            gateway_push_qs = GatewayPush.objects.filter(user_id=userID, logout=False).values(
+                                'app_app_id', 'm_code', 'app_type', 'push_type', 'token_val', 'lang', 'jg_token_val',
+                                'tz')
                             for item in gateway_push_qs:
                                 UidPushModel.objects.create(userID_id=userID, appBundleId=item['app_app_id'],
                                                             app_type=item['app_type'], addTime=now_time,