From c5bfed1e71c32da5ef44368ffca4aa2a96de8a01 Mon Sep 17 00:00:00 2001 From: yin5th <541304803@qq.com> Date: Thu, 27 Jan 2022 11:20:01 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index 7a175e1..2464ea1 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -80,7 +80,7 @@ class Coupon extends Base case 'normal': // 未使用且未过期 $whereMap[] = ['is_verificated', '=', self::BOOL_FALSE]; - $whereMap[] = ['end_time', '< TIME', date('Y-m-d H:i:s')]; + $whereMap[] = ['end_time', '> TIME', date('Y-m-d H:i:s')]; break; case 'used': // 已使用