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

+ 1 - 1
app/Services/NoticeService.php

xqd
@@ -54,7 +54,7 @@ class NoticeService
         $query = DynamicZanModel::query();
         if($param['type']==1){
             //他赞了我
-            $query = $query->with(['dynamic','dynamic.user_info'])->whereHas('dynamic',function ($query)use($param){
+            $query = $query->with(['dynamic','user','user_info'])->whereHas('dynamic',function ($query)use($param){
                 $query->where('user_id',$param['user_id'])->select();
             });