xiaogang 4 years ago
parent
commit
fcbefaef60
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/NoticeService.php

+ 1 - 1
app/Services/NoticeService.php

xqd
@@ -33,7 +33,7 @@ class NoticeService
             //喜欢我
             $query = $query->with(['user'=>function($query){
                 $query->select('id','sex','is_vip','tencent_im_user_id');
-            },'user_info as userinfo'])->where('like_id',$param['user_id']);
+            },'user_info'])->where('like_id',$param['user_id']);
 
             //清除喜欢我未读状态
             UserLikeModel::query()->where(['like_id'=>$param['user_id'],'status'=>0])->update(['status'=>1]);