Jelajahi Sumber

商城分类排序

lizhen_gitee 3 bulan lalu
induk
melakukan
0ce8890e5b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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个秒杀