xiaogang 3 年之前
父節點
當前提交
8cc239fd0c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/DynamicService.php

+ 1 - 1
app/Services/DynamicService.php

xqd
@@ -138,7 +138,7 @@ class DynamicService
                 $black_list = UserBlacklistModel::query()->where('user_id',$user->id)->select(['black_id'])->get()->toArray();
                 $ids = array_column($black_list,'black_id');
                 $ids[]= $user->id;
-                $query = $query->where('is_distory',0)->whereNotIn('users.id',$ids);
+                $query->where('is_distory',0)->whereNotIn('users.id',$ids);
             }else{
                 $query->where('is_distory',0)->select();
             }