添加玻璃判断

dev
曾超新 5 years ago
parent 74592cb390
commit d572da219b
  1. 9
      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;

Loading…
Cancel
Save