新增处方上报处方平台,未开发完毕,修改药品订单支付金额为0.01
This commit is contained in:
@@ -1245,17 +1245,21 @@ class PatientOrderService extends BaseService
|
||||
}
|
||||
|
||||
// 获取运费金额
|
||||
$Prescription = new Prescription();
|
||||
|
||||
$result = $Prescription->getLogisticsFee();
|
||||
if ($amount_total >= $result['drugCost']){
|
||||
$logistics_fee = 0;
|
||||
}else{
|
||||
$logistics_fee = $result['freight'];
|
||||
$logistics_fee = 0;
|
||||
if (env("APP_ENV") == "prod"){
|
||||
$Prescription = new Prescription();
|
||||
$result = $Prescription->getLogisticsFee();
|
||||
if ($amount_total < $result['drugCost']){
|
||||
$logistics_fee = $result['freight'];
|
||||
}
|
||||
}
|
||||
|
||||
// 实际支付金额
|
||||
$payment_amount_total = $amount_total + $logistics_fee;
|
||||
if (env("APP_ENV") == "prod"){
|
||||
$payment_amount_total = 0.01;
|
||||
}else{
|
||||
$payment_amount_total = $amount_total + $logistics_fee;
|
||||
}
|
||||
|
||||
// 获取收货地址
|
||||
$params = array();
|
||||
|
||||
Reference in New Issue
Block a user