wupengfei 2 年之前
父节点
当前提交
46d124ce44
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      application/api/controller/Secondary.php
  2. 1 1
      application/api/controller/UserCenter.php

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

@@ -481,7 +481,7 @@ class Secondary extends Base
             ->when($time_order,function ($query) use ($time_order){
                 $query->order('resale_time '.$time_order);
             })
-            ->order('resale_status asc,id desc')
+            ->order('id desc')
             ->limit($this->off_set,$this->page_num)
             ->select();
         foreach ($list as &$v){

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

@@ -408,7 +408,7 @@ class UserCenter extends Base
             ->where('resale_status',1)
             ->when($type,function ($query)use($type){ if($type) $query->where('type',$type);})
             ->group('c_id')
-            ->order('jump_id desc,id desc')
+            ->order('id desc')
             ->select();
         array_walk($group_list,function (&$val){
             $min_info =  Db::name('store_order_info')->field('tag,pro_info')->where('id',$val['jump_id'])->find();