From f850c7909e1a61a0758cdf26c42b7d9b64fa61fa Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Sun, 17 Nov 2019 12:35:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/CarController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index 0729c3b..dabcfb9 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -636,11 +636,13 @@ class CarController extends BaseController if($params['HolderIdType'] == '身份证') $params['HolderIdType'] = 1; else $params['HolderIdType'] = 9; - if($types[1] > 0 && $types[10] == '是' && $types[11] == '是') { + if(floatval($types[1]) > 0 && $types[10] == '是' && $types[11] == '是') { $params['ForceTax'] = 1; - } else if($types[10] == '是' && $types[11] == '是') { + } + if(floatval($types[1]) == 0 && $types[10] == '是' && $types[11] == '是') { $params['ForceTax'] = 2; - } else if($types[10] > 0) { + } + if(floatval($types[1]) > 0 && $types[10] == '否' && $types[11] == '否') { $params['ForceTax'] = 0; } switch($types[7]) {