This commit is contained in:
parent
93d5aae5ac
commit
7c1c63cbbf
@ -1677,18 +1677,17 @@ class PatientOrderService extends BaseService
|
|||||||
|
|
||||||
// 处理运费数据
|
// 处理运费数据
|
||||||
$app_env = config('app_env', 'prod');
|
$app_env = config('app_env', 'prod');
|
||||||
if ($app_env != "dev") {
|
if (env("APP_ENV") == "prod") {
|
||||||
// 获取运费金额
|
// $Prescription = new Prescription();
|
||||||
$Prescription = new Prescription();
|
// $result = $Prescription->getLogisticsFee();
|
||||||
|
// if ($freight_calculation_amount < $result['drugCost']) {
|
||||||
$result = $Prescription->getLogisticsFee();
|
// $logistics_fee = $result['freight'];
|
||||||
if ($freight_calculation_amount >= $result['drugCost']) {
|
// }
|
||||||
$logistics_fee = 0;
|
//测试环境 运费
|
||||||
|
$logistics_fee = 6;
|
||||||
}else{
|
}else{
|
||||||
$logistics_fee = $result['freight'];
|
//测试环境 运费
|
||||||
}
|
$logistics_fee = 1.9;
|
||||||
} else {
|
|
||||||
$logistics_fee = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
||||||
@ -2291,11 +2290,16 @@ class PatientOrderService extends BaseService
|
|||||||
// 获取运费金额
|
// 获取运费金额
|
||||||
$logistics_fee = 0;
|
$logistics_fee = 0;
|
||||||
if (env("APP_ENV") == "prod") {
|
if (env("APP_ENV") == "prod") {
|
||||||
$Prescription = new Prescription();
|
// $Prescription = new Prescription();
|
||||||
$result = $Prescription->getLogisticsFee();
|
// $result = $Prescription->getLogisticsFee();
|
||||||
if ($freight_calculation_amount < $result['drugCost']) {
|
// if ($freight_calculation_amount < $result['drugCost']) {
|
||||||
$logistics_fee = $result['freight'];
|
// $logistics_fee = $result['freight'];
|
||||||
}
|
// }
|
||||||
|
//测试环境 运费
|
||||||
|
$logistics_fee = 6;
|
||||||
|
}else{
|
||||||
|
//测试环境 运费
|
||||||
|
$logistics_fee = 1.9;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
// 实际支付金额=商品总金额-优惠卷金额+运费金额
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user