添加判断

dev
曾超新 5 years ago
parent eab63a35b0
commit f850c7909e
  1. 8
      frontend/controllers/CarController.php

@ -636,11 +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;
if($types[1] > 0 && $types[10] == '是' && $types[11] == '是') { if(floatval($types[1]) > 0 && $types[10] == '是' && $types[11] == '是') {
$params['ForceTax'] = 1; $params['ForceTax'] = 1;
} else if($types[10] == '是' && $types[11] == '是') { }
if(floatval($types[1]) == 0 && $types[10] == '是' && $types[11] == '是') {
$params['ForceTax'] = 2; $params['ForceTax'] = 2;
} else if($types[10] > 0) { }
if(floatval($types[1]) > 0 && $types[10] == '否' && $types[11] == '否') {
$params['ForceTax'] = 0; $params['ForceTax'] = 0;
} }
switch($types[7]) { switch($types[7]) {

Loading…
Cancel
Save