xiaogang 4 年之前
父节点
当前提交
fcbefaef60
共有 1 个文件被更改,包括 1 次插入1 次删除
  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]);