修改药品运费
This commit is contained in:
parent
66900e4a5e
commit
46f138bdcc
@ -1008,6 +1008,8 @@ class PatientOrderService extends BaseService
|
||||
return fail(HttpEnumCode::HTTP_ERROR, "存在库存不足商品", $not_enough_product_ids);
|
||||
}
|
||||
|
||||
$app_env = config('app_env','prod');
|
||||
if ($app_env != "dev"){
|
||||
// 获取运费金额
|
||||
$Prescription = new Prescription();
|
||||
|
||||
@ -1020,7 +1022,10 @@ class PatientOrderService extends BaseService
|
||||
|
||||
// 实际支付金额
|
||||
$payment_amount_total = $amount_total + $logistics_fee;
|
||||
if (env("APP_ENV") == "dev"){
|
||||
}
|
||||
|
||||
if ($app_env == "dev"){
|
||||
$logistics_fee = 0;
|
||||
$payment_amount_total = 0.01;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user