From 479a15f198d955ec7ba3e8e89c745889bfbc2e7a Mon Sep 17 00:00:00 2001 From: lccsw <805383944@qq.com> Date: Mon, 27 Jun 2022 10:01:17 +0800 Subject: [PATCH] edit-api-price_finance --- api/controllers/wxapp/licheb/CusorderV2.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controllers/wxapp/licheb/CusorderV2.php b/api/controllers/wxapp/licheb/CusorderV2.php index b0101bce..c64e95d0 100644 --- a/api/controllers/wxapp/licheb/CusorderV2.php +++ b/api/controllers/wxapp/licheb/CusorderV2.php @@ -443,7 +443,7 @@ class CusorderV2 extends Wxapp{ if($srv_arr){ $money_json['price_finance'] = $money_json['fee_carno'] = 0; foreach ($srv_arr as $item) { - $money_json[$item['key']] = $item['price']; + $money_json[$item['key']] = floatval($item['price']); $item['id'] == 1 && $data['if_insure'] = 1; $item['id'] == 2 && $data['if_num'] = 1; } @@ -453,7 +453,7 @@ class CusorderV2 extends Wxapp{ $money_json['price_fine_select'] = 0; foreach ($fines as $item) { if($item['price']){ - $money_json['price_fine_select'] += $item['price']; + $money_json['price_fine_select'] += floatval($item['price']); } } }