|
@@ -569,7 +569,7 @@ class ZA_bfjs(object):
|
|
|
'desVehicleOwnerName': '',
|
|
|
'applicantType': 'PERSONAL',
|
|
|
'applicantUseAttribute': '03',
|
|
|
- 'useAttribute': 'NONBUSINESS',
|
|
|
+ 'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
|
|
|
'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
|
|
|
'ownershipAttribute': 'PER',
|
|
|
'vehicleLicenceType': '',
|
|
@@ -701,7 +701,7 @@ class ZA_bfjs(object):
|
|
|
'desVehicleOwnerName': '',
|
|
|
'applicantType': 'PERSONAL',
|
|
|
'applicantUseAttribute': '03',
|
|
|
- 'useAttribute': 'NONBUSINESS',
|
|
|
+ 'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
|
|
|
'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
|
|
|
'ownershipAttribute': 'PER',
|
|
|
'vehicleLicenceType': '',
|
|
@@ -880,7 +880,7 @@ class ZA_bfjs(object):
|
|
|
'desVehicleOwnerName': '',
|
|
|
'applicantType': 'PERSONAL',
|
|
|
'applicantUseAttribute': '03',
|
|
|
- 'useAttribute': 'NONBUSINESS',
|
|
|
+ 'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
|
|
|
'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
|
|
|
'ownershipAttribute': 'PER',
|
|
|
'vehicleLicenceType': '',
|
|
@@ -999,7 +999,7 @@ class ZA_bfjs(object):
|
|
|
'desVehicleOwnerName': '',
|
|
|
'applicantType': 'PERSONAL',
|
|
|
'applicantUseAttribute': '03',
|
|
|
- 'useAttribute': 'NONBUSINESS',
|
|
|
+ 'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
|
|
|
'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
|
|
|
'ownershipAttribute': 'PER',
|
|
|
'vehicleLicenceType': '',
|
|
@@ -1753,24 +1753,7 @@ class ZA_bfjs(object):
|
|
|
sy_discount=''
|
|
|
#
|
|
|
isQuoteGreenWay = re.findall(r'isQuoteGreenWay":"(.*?)"', response.text, re.S)
|
|
|
- errorCodeMap_list = []
|
|
|
- if isQuoteGreenWay:
|
|
|
- isQuoteGreenWay = isQuoteGreenWay[0]
|
|
|
- url = "https://c.zhongan.com/open/bmw/quote_controller/get_green_base_info.json"
|
|
|
- data = {
|
|
|
- "quoteId":self.quoteId,
|
|
|
- "flowId": self.flowId,
|
|
|
- "page": "%2FinsureProgram",
|
|
|
- "i": "e",
|
|
|
- "flag": "0"
|
|
|
- }
|
|
|
- response = requests.post(url, headers=self.headers, data=data)
|
|
|
- errorCodeMap=response.json().get('value').get('datas').get('errorCodeMap')
|
|
|
- errorCodeMap_list=[]
|
|
|
- for i in errorCodeMap:
|
|
|
- errorCodeMap_list.append(i+':'+errorCodeMap.get(i))
|
|
|
- else:
|
|
|
- isQuoteGreenWay = '0'
|
|
|
+
|
|
|
|
|
|
jq_startDate = ''
|
|
|
jq_endDate = ''
|
|
@@ -1839,6 +1822,26 @@ class ZA_bfjs(object):
|
|
|
# 年款
|
|
|
carInfo['caryear'] = self.car_info.get('configName')
|
|
|
|
|
|
+ errorCodeMap_list = []
|
|
|
+ if isQuoteGreenWay:
|
|
|
+ isQuoteGreenWay = isQuoteGreenWay[0]
|
|
|
+ url = "https://c.zhongan.com/open/bmw/quote_controller/get_green_base_info.json"
|
|
|
+ data = {
|
|
|
+ "quoteId": self.quoteId,
|
|
|
+ "flowId": self.flowId,
|
|
|
+ "page": "%2FinsureProgram",
|
|
|
+ "i": "e",
|
|
|
+ "flag": "0"
|
|
|
+ }
|
|
|
+ response = requests.post(url, headers=self.headers, data=data)
|
|
|
+ errorCodeMap = response.json().get('value').get('datas').get('errorCodeMap')
|
|
|
+ errorCodeMap_list = []
|
|
|
+ for i in errorCodeMap:
|
|
|
+ errorCodeMap_list.append(i + ':' + errorCodeMap.get(i))
|
|
|
+ else:
|
|
|
+ isQuoteGreenWay = '0'
|
|
|
+
|
|
|
+
|
|
|
redis_conn.hset('zhongan_' + plyappno, 'username', self.username)
|
|
|
return {
|
|
|
'code': 200,
|