药品订单取消、创建药品订单1
This commit is contained in:
parent
98cc84a75d
commit
709a7abe0b
@ -948,9 +948,8 @@ class PatientOrderService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 优惠卷商品数据
|
// 优惠卷商品数据
|
||||||
$coupon_product_data = array();
|
|
||||||
$product['product_num'] = $order_prescription_product['prescription_product_num'];
|
$product['product_num'] = $order_prescription_product['prescription_product_num'];
|
||||||
$coupon_product_data = $product;
|
$coupon_product_data = $product->toArray();
|
||||||
$coupon_product_datas[] = $coupon_product_data;
|
$coupon_product_datas[] = $coupon_product_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1131,10 +1130,8 @@ class PatientOrderService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*模拟支付成功-金额为0时使用-问诊订单
|
*模拟支付成功-金额为0时使用
|
||||||
* @return array
|
* @return array
|
||||||
* @throws ContainerExceptionInterface
|
|
||||||
* @throws NotFoundExceptionInterface
|
|
||||||
*/
|
*/
|
||||||
public function addPatientOrderPay(): array
|
public function addPatientOrderPay(): array
|
||||||
{
|
{
|
||||||
@ -1561,10 +1558,12 @@ class PatientOrderService extends BaseService
|
|||||||
2
|
2
|
||||||
);
|
);
|
||||||
if ($app_env == "dev") {
|
if ($app_env == "dev") {
|
||||||
$payment_amount_total = 0.01;
|
if ($payment_amount_total > 0){
|
||||||
|
$payment_amount_total = 0.01;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($payment_amount_total <= 0){
|
if ($payment_amount_total < 0){
|
||||||
return fail(HttpEnumCode::SERVER_ERROR);
|
return fail(HttpEnumCode::SERVER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user