修改创建问诊订单
This commit is contained in:
parent
c9964ecf16
commit
c3f27807f0
@ -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){
|
||||||
|
|||||||
@ -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) {
|
||||||
|
|||||||
@ -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'])){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user