xiaogang 3 年之前
父節點
當前提交
042e05b4a7
共有 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');
-                if($where['user_id']!=0) {
+                if($where['user_id']!=$user->id) {
                     $ids[] = $user->id;
                 }
                 $query->where('is_distory',0)->whereNotIn('users.id',$ids);