Procházet zdrojové kódy

商城分类排序

lizhen_gitee před 3 měsíci
rodič
revize
0ce8890e5b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      addons/shopro/controller/Index.php

+ 1 - 1
addons/shopro/controller/Index.php

@@ -45,7 +45,7 @@ class Index extends Common
             'status'    => 'normal',
             'parent_id' => 1
         ];
-        $category = Db::name('shopro_category')->field('id, name, image')->where($where)->order('weigh', 'desc')->select();
+        $category = Db::name('shopro_category')->field('id, name, image')->where($where)->order('weigh', 'desc')->order('id', 'desc')->select();
         $category = list_domain_image($category, ['image']);
 
         //3个秒杀