Browse Source

一些功能

Kirin 3 years ago
parent
commit
09e51b11ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/models/store/StoreExchangeOrder.php

+ 2 - 2
app/models/store/StoreExchangeOrder.php

@@ -159,9 +159,9 @@ class StoreExchangeOrder extends BaseModel
     public static function getUserOrderList($uid, $status = '', $page = 0, $limit = 8)
     {
         if ($page) $list = self::statusByWhere($status, $uid)->where('uid|gift_uid', $uid)
-            ->order('add_time DESC')->page((int)$page, (int)$limit)->select()->toArray();
+            ->order('id DESC')->page((int)$page, (int)$limit)->select()->toArray();
         else  $list = self::statusByWhere($status, $uid)->where('uid|gift_uid', $uid)
-            ->order('add_time DESC')->page((int)$page, (int)$limit)->select()->toArray();
+            ->order('id DESC')->page((int)$page, (int)$limit)->select()->toArray();
         return $list;
     }