diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 6d4416e..d29392c 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -51,7 +51,7 @@ class Coupon extends Base try { $whereMap = []; - $sortOrder = ['id' => 'desc']; + $sortOrder = ['is_verificated'=>'asc','id' => 'desc']; $fields = [ 'id', 'is_verificated as isVerificated', diff --git a/app/model/CouponMain.php b/app/model/CouponMain.php index 0d41a49..6381155 100644 --- a/app/model/CouponMain.php +++ b/app/model/CouponMain.php @@ -22,7 +22,7 @@ class CouponMain extends Base const on_screen_yes = 1;//展示到商圈大屏 const on_screen_no = 0;//不展示到商圈大屏 - + const min_consumer_money = 0.3;//红包最小金额 public function business()