|
@@ -121,7 +121,7 @@ class NotificationView(View):
|
|
|
nickname = uid
|
|
|
if detect_group:
|
|
|
if have_dkey:
|
|
|
- detect_med_type = 1
|
|
|
+ detect_med_type = 1 # 1为存库不推送
|
|
|
else:
|
|
|
detect_med_type = 2 # 为2的话,既推送,又存库
|
|
|
# detect_group=0允许全部推送的时候
|
|
@@ -197,6 +197,10 @@ class NotificationView(View):
|
|
|
print('do_jpush')
|
|
|
do_jpush_code = self.do_jpush(**kwag_args)
|
|
|
# return JsonResponse(status=200, data={'code': 0, '状态:': self.do_jpush(**kwag_args)})
|
|
|
+ if detect_med_type == 1:
|
|
|
+ do_apns_code = '只存库不推送'
|
|
|
+ do_fcm_code = '只存库不推送'
|
|
|
+ do_jpush_code = '只存库不推送'
|
|
|
# 以下是存库
|
|
|
userID_id = up["userID_id"]
|
|
|
int_is_st = int(is_st)
|