Browse Source

商城分类排序

lizhen_gitee 3 months ago
parent
commit
0ce8890e5b
1 changed files with 1 additions and 1 deletions
  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个秒杀