获取提现数据 增加可提现订单号2

This commit is contained in:
wucongxing8150 2024-06-26 09:47:57 +08:00
parent 4100072ffa
commit 56e484ae23

View File

@ -665,7 +665,7 @@ class DoctorAccountService extends BaseService
} }
// 验证订单状态 // 验证订单状态
if ($order_service_package['order_service_status'] != 4 || $order_service_package['order_service_status'] != 5) { if ($order_service_package['order_service_status'] != 4 && $order_service_package['order_service_status'] != 5) {
return fail(HttpEnumCode::HTTP_ERROR, "提现失败"); return fail(HttpEnumCode::HTTP_ERROR, "提现失败");
} }
@ -695,19 +695,35 @@ class DoctorAccountService extends BaseService
} }
// 计算本次问诊服务包问诊金额 // 计算本次问诊服务包问诊金额
$amount_total = bcadd( if ($order['order_type'] == 4){
(string)$amount_total, // 随访包
bcsub( $amount_total = bcadd(
bcmul( (string)$amount_total,
(string)$order_service_package_detail['service_count'], bcsub(
(string)$order_service_package_detail['single_inquiry_price'], (string)$order_service_package_detail['service_price'],
$refund_total,
3 3
), ),
$refund_total,
3 3
), );
3 }
);
if ($order['order_type'] == 5){
// 健康包
$amount_total = bcadd(
(string)$amount_total,
bcsub(
bcmul(
(string)$order_service_package_detail['service_count'],
(string)$order_service_package_detail['single_inquiry_price'],
3
),
$refund_total,
3
),
3
);
}
} }
} }