新增处方上报处方平台,未开发完毕,修改药品订单支付金额为0.01

This commit is contained in:
2023-04-04 13:54:26 +08:00
parent afa721104e
commit 1651896958
6 changed files with 319 additions and 218 deletions
+12 -8
View File
@@ -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();