wesmiler hace 3 meses
padre
commit
3a260ce68e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/Api/ArticleService.php

+ 1 - 1
app/Services/Api/ArticleService.php

@@ -183,7 +183,7 @@ class ArticleService extends BaseService
         $limit = ConfigService::make()->getConfigByCode('index_article_num',3);
         $datas = ArticleCateModel::with(['articles'])->where(['type'=>$type,'status'=>1,'mark'=>1])
             ->select(['id','name','sort','type'])
-            ->get()->keyBy('id');
+            ->get();
         $datas = $datas? $datas->toArray() : [];
         if($datas){
             foreach ($datas as &$item){