Browse Source

完善我的优惠券接口

15954078560 2 năm trước cách đây
mục cha
commit
da2e5e04eb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      application/api/controller/User.php

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

@@ -1508,7 +1508,7 @@ class User extends Api
             $where['status'] = 0;
         }
 
-        $list = Db::name('user_coupon')->field('id, title, desc, type, money, minmoney, endtime')->where($where)->select();
+        $list = Db::name('user_coupon')->field('id, title, desc, type, money, minmoney, endtime')->where($where)->page($this->page, $this->pagenum)->select();
         foreach ($list as &$v) {
             $v['endtime'] = date('Y-m-d', $v['endtime']);
         }