修改创建问诊订单

This commit is contained in:
wucongxing 2023-11-09 09:24:51 +08:00
parent c9964ecf16
commit c3f27807f0
3 changed files with 0 additions and 6 deletions

View File

@ -143,7 +143,6 @@ class UserCoupon extends Model
->whereHas('Coupon', function ($query) use ($coupon_product_datas) { ->whereHas('Coupon', function ($query) use ($coupon_product_datas) {
$query->where("coupon_client",1) $query->where("coupon_client",1)
->where("coupon_status",1) ->where("coupon_status",1)
->where("application_scope",2)
->whereIn("application_scope",[1,3,4,5]) ->whereIn("application_scope",[1,3,4,5])
->where(function ($query) use ($coupon_product_datas) { ->where(function ($query) use ($coupon_product_datas) {
foreach ($coupon_product_datas as $coupon_product_data){ foreach ($coupon_product_datas as $coupon_product_data){

View File

@ -1212,10 +1212,6 @@ class PatientOrderService extends BaseService
$payment_amount_total = 0.01; $payment_amount_total = 0.01;
} }
if ($payment_amount_total < 0) {
$payment_amount_total = 0;
}
// 确定支付渠道 // 确定支付渠道
// 支付渠道1:小程序支付 2:微信扫码支付) // 支付渠道1:小程序支付 2:微信扫码支付)
if ($client_type == 1) { if ($client_type == 1) {

View File

@ -133,7 +133,6 @@ class UserCouponService extends BaseService
$coupons[$key]['cannot_use_coupon_reason'] = ""; // 不可使用原因 $coupons[$key]['cannot_use_coupon_reason'] = ""; // 不可使用原因
} }
dump($user_coupons);
foreach ($coupons as $key => $coupon) { foreach ($coupons as $key => $coupon) {
// 处理优惠卷数量限制问题 // 处理优惠卷数量限制问题
if ($coupon['coupon_type'] == 3 && !empty($coupon['product_id'])){ if ($coupon['coupon_type'] == 3 && !empty($coupon['product_id'])){