Browse Source

完善我的优惠券接口

15954078560 2 years ago
parent
commit
da2e5e04eb
1 changed files with 1 additions and 1 deletions
  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;
             $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) {
         foreach ($list as &$v) {
             $v['endtime'] = date('Y-m-d', $v['endtime']);
             $v['endtime'] = date('Y-m-d', $v['endtime']);
         }
         }