From ece2603df8f382ad6d1b9a660d1dad6c93dc3ab8 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Tue, 8 Feb 2022 14:37:31 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 2 +- app/model/CouponMain.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()