xiaogang пре 4 година
родитељ
комит
27ee5929b8
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'])->where('like_id',$param['user_id']);
+            },'user_info as userinfo'])->where('like_id',$param['user_id']);
 
             //清除喜欢我未读状态
             UserLikeModel::query()->where(['like_id'=>$param['user_id'],'status'=>0])->update(['status'=>1]);