wupengfei 2 rokov pred
rodič
commit
1376520080
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/api/controller/Mall.php

+ 1 - 1
application/api/controller/Mall.php

@@ -59,7 +59,7 @@ class Mall extends Base
      */
     public function getWashCate()
     {
-        $list =  WashCate::where('is_deleted',0)->field('id,logo,title,ladder_set')->select()->toArray();
+        $list =  WashCate::where('is_deleted',0)->field('id,logo,title,ladder_set')->order('sort desc ,id desc')->select()->toArray();
         array_walk($list,function (&$v,$k){
             $v['ladder_set'] = $v['ladder_set'] ? json_decode($v['ladder_set'],true):null;
         });