Browse Source

后台推送判断优化

xiaogang 3 năm trước cách đây
mục cha
commit
317535c87f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Admin/Controllers/NoticeController.php

+ 1 - 1
app/Admin/Controllers/NoticeController.php

xqd
@@ -85,7 +85,7 @@ class NoticeController extends AdminController
                 //推送消息
                 $notice = Notice::query()->orderBy('id','desc')->first();
 
-                $users = User::query()->where(['notice_status'=>1])->whereNotNull('registrationId')->get(['id','registrationId'])->toArray();
+                $users = User::query()->where(['notice_status'=>1,'is_distory'=>0])->whereNotNull('registrationId')->get(['id','registrationId'])->toArray();
 
                 $registrationIds = array_column($users,'registrationId');