From bc985c982d265bdda17796c09aa67afe3348dad9 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Sat, 16 Nov 2019 22:15:42 +0800 Subject: [PATCH] test1 --- frontend/controllers/CarController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/controllers/CarController.php b/frontend/controllers/CarController.php index 56f330b..75a4e99 100644 --- a/frontend/controllers/CarController.php +++ b/frontend/controllers/CarController.php @@ -619,6 +619,12 @@ class CarController extends BaseController 'VehicleYear' => $request->post('vehicle_year'), 'AutoMoldCodeSource' => 3, ]; + if($params['QuoteGroup'] == 0) { + return MyLib::error3('请选择保险公司'); + } + if($params['CarUsedType'] == 0) { + return MyLib::error3('请选择车辆使用性质'); + } if($params['OwnerIdCardType'] == '身份证') $params['OwnerIdCardType'] = 1; else $params['OwnerIdCardType'] = 9; if($params['InsuredIdType'] == '身份证') $params['InsuredIdType'] = 1;