From d572da219bbc5412a68a89e1f4b07d42cf676d31 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Sun, 17 Nov 2019 13:02:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=8E=BB=E7=92=83=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/controllers/CarController.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index 25b9de6..f627c88 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -599,7 +599,7 @@ class CarController extends BaseController 'ForceTax' => 1, 'BizTimeStamp' => $request->post('insurer1_begin_date'), 'ForceTimeStamp' => $request->post('insurer2_begin_date'), - 'BoLi' => $types[6] == '否' ? 0 : $types[6] == '国产' ? 1 : 2, + 'BoLi' => 0, 'BuJiMianCheSun' => isset($nopays[1])?1:0, 'BuJiMianDaoQiang' => isset($nopays[3])?1:0, 'BuJiMianSanZhe' => isset($nopays[2])?1:0, @@ -638,7 +638,6 @@ class CarController extends BaseController $min_chesun = floatval($request->post('min_chesun')); $max_chesun = floatval($request->post('max_chesun')); - if($params['CheSun'] > 0 && $min_chesun > 0 && $max_chesun > 0 && ($params['CheSun'] < $min_chesun || $params['CheSun'] > $max_chesun)) { return MyLib::error3('车损只能填写:'.$min_chesun.' ~ '.$max_chesun.' 之间的值'); } @@ -651,6 +650,12 @@ class CarController extends BaseController if($params['CheSun'] > 0 && $types[10] == '否' && $types[11] == '否') { $params['ForceTax'] = 0; } + if($types[6] == '国产') { + $params['BoLi'] = 1; + } + if($types[6] == '进口') { + $params['BoLi'] = 2; + } switch($types[7]) { case '2000元': $params['HuaHen'] = 2000;