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]);