xielin il y a 5 ans
Parent
commit
611bfe2097
1 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 6 6
      app/Repositories/Post/PostRepository.php

+ 6 - 6
app/Repositories/Post/PostRepository.php

@@ -838,12 +838,12 @@ class PostRepository
             }
         }
 
-        $info['total_read'] = $totalRead;
-        $info['total_post'] = $totalPost;
-        $info['total_share'] = $totalShare;
-        $info['total_like'] = $totalLike;
-        $info['total_collect'] = $totalCollect;
-        $info['total_comment'] = $totalComment;
+        $info['data']['total_read'] = $totalRead;
+        $info['data']['total_post'] = $totalPost;
+        $info['data']['total_share'] = $totalShare;
+        $info['data']['total_like'] = $totalLike;
+        $info['data']['total_collect'] = $totalCollect;
+        $info['data']['total_comment'] = $totalComment;
         return $info;
     }