xiaogang hace 4 años
padre
commit
128df3e177
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/NoticeService.php

+ 1 - 1
app/Services/NoticeService.php

xqd
@@ -66,7 +66,7 @@ class NoticeService
 
             //我赞了他
             $query = $query->with(['dynamic'=>function($query){
-                $query->select('id','content','img_url');
+                $query->select('id','user_id','content','img_url');
             },'dynamic.user'=>function($querty){
                 $querty->select('id','sex','is_vip','tencent_im_user_id');
             },'dynamic.user_info'])