Răsfoiți Sursa

首页权重问题

whitefang 1 an în urmă
părinte
comite
7cda31ccd8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      app/api/lists/HomeSpecialLists.php

+ 1 - 1
app/api/lists/HomeSpecialLists.php

@@ -59,7 +59,7 @@ class HomeSpecialLists  extends BaseApiDataLists implements ListsSearchInterface
             ->where('status',1)
             ->field(['id', 'special_type','special_way', 'title', 'cover_type', 'cover', 'user_head', 'user_nickname', 'vue_web', 'vue_param', 'view_num', 'tags', 'status', 'original_price' ,'present_price','goods_id'])
             ->limit($this->limitOffset, $this->limitLength)
-            ->order(['id' => 'desc'])
+            ->order(['weight' => 'desc'])
             ->select()
             ->each(function($item){
                 if($item->goods_id){