Explorar o código

wesmiler 报恩寺项目提交

wesmiler %!s(int64=4) %!d(string=hai) anos
pai
achega
2c5775dfb6
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/Services/MemberService.php

+ 1 - 0
app/Services/MemberService.php

@@ -736,6 +736,7 @@ class MemberService extends BaseService
         $dataList = $this->model::from('member as m')
             ->leftJoin('member_follow as mf','mf.follow_uid','=','m.id')
             ->where(['m.mark'=>1,'m.status'=> 1])
+            ->whereNotIn('m.id', $userId)
             ->whereNotIn('m.id',function($query) use ($userId){
                 $query->from('member_follow')->where(['user_id'=> $userId])->select(['follow_uid']);
             })