From 7004031810c0bcf364c8e4015309d53da6f2daf5 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 12 Jun 2024 14:04:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=94=BE=E4=BC=98=E6=83=A0=E5=8D=B7?= =?UTF-8?q?=E5=8E=BB=E9=99=A4=20=E5=88=A4=E6=96=AD=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=B7=B2=E6=9C=89=E8=AF=A5=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/CouponService.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Services/CouponService.php b/app/Services/CouponService.php index 784ba2b..ecb68dd 100644 --- a/app/Services/CouponService.php +++ b/app/Services/CouponService.php @@ -59,16 +59,16 @@ class CouponService extends BaseService return false; } - // 判断用户是否已有该优惠卷 - $params = array(); - $params['user_id'] = $user_id; - $params['coupon_id'] = $coupon['coupon_id']; - $user_coupon = UserCoupon::getOne($params); - if (!empty($user_coupon)){ - if ($user_coupon['user_coupon_status'] == 0){ - return true; - } - } +// // 判断用户是否已有该优惠卷 +// $params = array(); +// $params['user_id'] = $user_id; +// $params['coupon_id'] = $coupon['coupon_id']; +// $user_coupon = UserCoupon::getOne($params); +// if (!empty($user_coupon)){ +// if ($user_coupon['user_coupon_status'] == 0){ +// return true; +// } +// } // 判断该优惠卷状态 if ($coupon['coupon_status'] != 1){