Browse Source

返回字段更改

duqinya 5 years ago
parent
commit
b8037c35d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Repositories/BeanRepository.php

+ 1 - 1
app/Repositories/BeanRepository.php

@@ -66,7 +66,7 @@ class BeanRepository
             ->groupBy('related_content_id', 'content_author_id')->orderBy('count', 'desc')->limit(1)->get();
             ->groupBy('related_content_id', 'content_author_id')->orderBy('count', 'desc')->limit(1)->get();
         $collent = $collent->toArray();
         $collent = $collent->toArray();
         foreach ($collent as $k=>$v){
         foreach ($collent as $k=>$v){
-            $collent[$k]['type'] = 'collent';
+            $collent[$k]['type'] = 'collect';
         }
         }
 
 
         //文章被喜欢最多用户
         //文章被喜欢最多用户