Parcourir la source

商城分类排序

lizhen_gitee il y a 3 mois
Parent
commit
0ce8890e5b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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个秒杀