|
|
@ -599,7 +599,7 @@ class CarController extends BaseController |
|
|
|
'ForceTax' => 1, |
|
|
|
'ForceTax' => 1, |
|
|
|
'BizTimeStamp' => $request->post('insurer1_begin_date'), |
|
|
|
'BizTimeStamp' => $request->post('insurer1_begin_date'), |
|
|
|
'ForceTimeStamp' => $request->post('insurer2_begin_date'), |
|
|
|
'ForceTimeStamp' => $request->post('insurer2_begin_date'), |
|
|
|
'BoLi' => 0, |
|
|
|
'BoLi' => $types[6] == '否' ? 0 : $types[6] == '国产' ? 1 : 2, |
|
|
|
'BuJiMianCheSun' => isset($nopays[1])?1:0, |
|
|
|
'BuJiMianCheSun' => isset($nopays[1])?1:0, |
|
|
|
'BuJiMianDaoQiang' => isset($nopays[3])?1:0, |
|
|
|
'BuJiMianDaoQiang' => isset($nopays[3])?1:0, |
|
|
|
'BuJiMianSanZhe' => isset($nopays[2])?1:0, |
|
|
|
'BuJiMianSanZhe' => isset($nopays[2])?1:0, |
|
|
@ -612,7 +612,7 @@ class CarController extends BaseController |
|
|
|
'HuaHen' => $types[7], |
|
|
|
'HuaHen' => $types[7], |
|
|
|
'SiJi' => $types[4], |
|
|
|
'SiJi' => $types[4], |
|
|
|
'ChengKe' => $types[5], |
|
|
|
'ChengKe' => $types[5], |
|
|
|
'CheSun' => floatval($types[1]), |
|
|
|
'CheSun' => $types[1], |
|
|
|
'DaoQiang' => $types[3]=='是'?1:0, |
|
|
|
'DaoQiang' => $types[3]=='是'?1:0, |
|
|
|
'SanZhe' => $types[2], |
|
|
|
'SanZhe' => $types[2], |
|
|
|
'ZiRan' => $types[9]=='是'?1:0, |
|
|
|
'ZiRan' => $types[9]=='是'?1:0, |
|
|
@ -636,26 +636,13 @@ class CarController extends BaseController |
|
|
|
if($params['HolderIdType'] == '身份证') $params['HolderIdType'] = 1; |
|
|
|
if($params['HolderIdType'] == '身份证') $params['HolderIdType'] = 1; |
|
|
|
else $params['HolderIdType'] = 9; |
|
|
|
else $params['HolderIdType'] = 9; |
|
|
|
|
|
|
|
|
|
|
|
$min_chesun = floatval($request->post('min_chesun')); |
|
|
|
if($types[1] > 0 && $types[10] == '是' && $types[11] == '是') { |
|
|
|
$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.' 之间的值'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($params['CheSun'] > 0 && $types[10] == '是' && $types[11] == '是') { |
|
|
|
|
|
|
|
$params['ForceTax'] = 1; |
|
|
|
$params['ForceTax'] = 1; |
|
|
|
} |
|
|
|
} else if($types[10] == '是' && $types[11] == '是') { |
|
|
|
if($params['CheSun'] == 0 && $types[10] == '是' && $types[11] == '是') { |
|
|
|
|
|
|
|
$params['ForceTax'] = 2; |
|
|
|
$params['ForceTax'] = 2; |
|
|
|
} |
|
|
|
} else if($types[10] > 0) { |
|
|
|
if($params['CheSun'] > 0 && $types[10] == '否' && $types[11] == '否') { |
|
|
|
|
|
|
|
$params['ForceTax'] = 0; |
|
|
|
$params['ForceTax'] = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
if($types[6] == '国产') { |
|
|
|
|
|
|
|
$params['BoLi'] = 1; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if($types[6] == '进口') { |
|
|
|
|
|
|
|
$params['BoLi'] = 2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
switch($types[7]) { |
|
|
|
switch($types[7]) { |
|
|
|
case '2000元': |
|
|
|
case '2000元': |
|
|
|
$params['HuaHen'] = 2000; |
|
|
|
$params['HuaHen'] = 2000; |
|
|
|