From c3f27807f054f28670732b8b7167cf881e03fe74 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 9 Nov 2023 09:24:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=9B=E5=BB=BA=E9=97=AE?= =?UTF-8?q?=E8=AF=8A=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Model/UserCoupon.php | 1 - app/Services/PatientOrderService.php | 4 ---- app/Services/UserCouponService.php | 1 - 3 files changed, 6 deletions(-) diff --git a/app/Model/UserCoupon.php b/app/Model/UserCoupon.php index 94d6f13..78af11e 100644 --- a/app/Model/UserCoupon.php +++ b/app/Model/UserCoupon.php @@ -143,7 +143,6 @@ class UserCoupon extends Model ->whereHas('Coupon', function ($query) use ($coupon_product_datas) { $query->where("coupon_client",1) ->where("coupon_status",1) - ->where("application_scope",2) ->whereIn("application_scope",[1,3,4,5]) ->where(function ($query) use ($coupon_product_datas) { foreach ($coupon_product_datas as $coupon_product_data){ diff --git a/app/Services/PatientOrderService.php b/app/Services/PatientOrderService.php index 02105be..34114c8 100644 --- a/app/Services/PatientOrderService.php +++ b/app/Services/PatientOrderService.php @@ -1212,10 +1212,6 @@ class PatientOrderService extends BaseService $payment_amount_total = 0.01; } - if ($payment_amount_total < 0) { - $payment_amount_total = 0; - } - // 确定支付渠道 // 支付渠道(1:小程序支付 2:微信扫码支付) if ($client_type == 1) { diff --git a/app/Services/UserCouponService.php b/app/Services/UserCouponService.php index 53216ea..ee077cb 100644 --- a/app/Services/UserCouponService.php +++ b/app/Services/UserCouponService.php @@ -133,7 +133,6 @@ class UserCouponService extends BaseService $coupons[$key]['cannot_use_coupon_reason'] = ""; // 不可使用原因 } - dump($user_coupons); foreach ($coupons as $key => $coupon) { // 处理优惠卷数量限制问题 if ($coupon['coupon_type'] == 3 && !empty($coupon['product_id'])){