def test_02api_78dk_app_periods_getConsumption(self): #获取额度测评 # {"paramSingle":{"speed":"-1.000000","cityAdcode":"510100","bearing":"-1.000000","longitude":"104.071547","countryCode":"156","latitude":"30.545090","province":"四川省", # "districtAdcode":"510107","pois":[],"city":"成都市","district":"武侯区","accuracy":"65.000000","streetNumber":{"street":"天华路","number":"365号"},"country":"中国"}} #{'paramSingle': '用户位置信息(Y)'} sql = 'UPDATE Tbl_Contract set contract_state=\'invalid\' where user_id=27;' MysqlClent.executed_all(loginAction.DB, sql) paramSingle = { "country": "中国", "city": "成都市", "streetNumber": { "number": "475号", "street": "天华路" }, "bearing": 0, "latitude": 30.54621, "districtAdcode": "510107", "accuracy": 550, "speed": 0, "province": "四川省", "cityAdcode": "510100", "countryCode": "156", "district": "武侯区", "longitude": 104.072154 } res = JtlappAction.test_api_78dk_app_periods_getConsumption( paramSingle)
def test_06api_78dk_app_loan_image_saveContractImages(self): #影像资料保存 # [[{contractImageUuid=null,contractId=null,contractUuid=null,key=YHSFZZPZM,url=f12f/215684f12f875fc4982ff938590810acf066cd,originalImageUuid=null}, # {contractImageUuid=null,contractId=null,contractUuid=null,key=YHSFZZPFM,url=f12f/215684f12f875fc4982ff938590810acf066cd,originalImageUuid=null}, # {contractImageUuid=null,contractId=null,contractUuid=null,key=YHSFZZPSC,url=32cc/22183732cc17031b1dcd9550f79de5c9ff071f,originalImageUuid=null}, # {contractImageUuid=null,contractId=null,contractUuid=null,key=YHZXHTZP,url=3e3a/2477093e3ae16110e4592b09b1f7a2c70f609b,originalImageUuid=null}, # {contractImageUuid=null,contractId=null,contractUuid=null,key=YHFCZM,url=3e3a/2477093e3ae16110e4592b09b1f7a2c70f609b,originalImageUuid=null}]] #{'url': '图片相对URL(Y)', 'key': '图片配置key(Y)'} res = JtlappAction.test_api_78dk_app_loan_image_saveContractImages()
def test_01api_78dk_app_base_getUserInfo(self): # 将用户的所有订单设置成无效: # UPDATE Tbl_Contract set contract_state='invalid' where user_id=27; #获取用户信息 authCode每次扫码都在变化 # [{authCode=0026c51b2e9e4fc4adfb224a80cfWF93,storeUuid=e6eb671c41a148ef84b4b4cfedf0a28e,preferential=57cec4137b}] # [{authCode=f771573ebbaf475f957f825d038bZX93,storeUuid=e6eb671c41a148ef84b4b4cfedf0a28e,preferential=57cec4137b}] #{'preferential': '57cec4137b', 'storeUuid': 'e6eb671c41a148ef84b4b4cfedf0a28e', 'authCode': '用户权限编码(Y)'} # sql = 'UPDATE Tbl_Contract set contract_state=\'invalid\' where user_id=27;' # MysqlClent.executed_all(sql) res = JtlappAction.test_api_78dk_app_base_getUserInfo('9e01be8b7d3d4227bec4d629ca7eZX93','38a98739e13d451aa6a2d6f6fb77c1b6','57cec4137b') print(json.loads(res))
def test_05api_78dk_app_periods_postUserInfo(self): #填写基本信息 # {"username":"******","idcard":"511623199112244421","phone":"18381674004","job":"企业高管/副处级以上官员","house":"本人名下","decorationInputAddress":"抖音","immediatefamily":"嗯呢", # "relationship":"父母","kinsfolkphone":"15836985369","decorationProvinceId":"110000","decorationCityId":"110100","decorationDistrictId":"110101"} # house, idcard, immediatefamily, job, kinsfolkphone, phone, relationship, username, # '本人名下','511623199112244421','企业高管/副处级以上官员','15263215235','18381674004','胡红','510000', '510104','vvsdfsdfdsfdsfdsfdsfdsfd','510100' # decorationcityid, decorationdistrictid, decorationinputaddress, decorationprovinceid, # {'house': '房产类型', 'relationship': '亲属关系', 'phone': '手机号', 'decorationInputAddress': '装修地址-详细', # 'job': '职业类型', 'decorationDistrictId': '装修地址-区/县', 'kinsfolkphone': '亲属电话', 'idcard': '身份证', # 'decorationCityId': '装修地址-市', 'username': '******', 'immediatefamily': '亲属姓名', 'decorationProvinceId': '装修地址-省'} res = JtlappAction.test_api_78dk_app_periods_postUserInfo('本人名下','511623199112244421','retret','企业高管/副处级以上官员','15263215235','18381674004','父母','胡红', '510000', '510104','vvsdfsdfdsfdsfdsfdsfdsfd','510100')
def test_01api_78dk_app_base_getUserInfo(self): # 将用户的所有订单设置成无效: # UPDATE Tbl_Contract set contract_state='invalid' where user_id=27; #获取用户信息 authCode每次扫码都在变化 # [{authCode=0026c51b2e9e4fc4adfb224a80cfWF93,storeUuid=e6eb671c41a148ef84b4b4cfedf0a28e,preferential=57cec4137b}] # [{authCode=f771573ebbaf475f957f825d038bZX93,storeUuid=e6eb671c41a148ef84b4b4cfedf0a28e,preferential=57cec4137b}] #{'preferential': '57cec4137b', 'storeUuid': 'e6eb671c41a148ef84b4b4cfedf0a28e', 'authCode': '用户权限编码(Y)'} sql = 'UPDATE Tbl_Contract set contract_state=\'invalid\' where user_id=27;' MysqlClent.executed_all(loginAction.DB, sql) res = JtlappAction.test_api_78dk_app_base_getUserInfo( '57cec4137b', 'e6eb671c41a148ef84b4b4cfedf0a28e', '0026c51b2e9e4fc4adfb224a80cfWF93')
def test_04api_78dk_app_periods_applyPeriods(self): #申请分期 amount, period, periodmoney, method, userlocation # {msg=成功,code=10000,data={periodList=[{period=6,value=3333.33}, {period=12,value=1733.16}, {period=24,value=933.16}, {period=36,value=688.71}]}} #{'userLocation': '用户位置信息(N)', 'periodMoney': '每期还款金额(Y)', 'method': '还款方式(Y)', 'amount': '总金额(Y)', 'period': '还款期数(Y)'} res = JtlappAction.test_api_78dk_app_periods_applyPeriods('200000', '6', '33333.33', '每月等额', '', '', '')
def test_03api_78dk_app_periods_getPeriodsOptions(self): #获取申请分期 #{'money': ''} res = JtlappAction.test_api_78dk_app_periods_getPeriodsOptions('200000', '')
def test_10api_78dk_app_base_getWsAuditResult(self): #网商进件 #{} res = JtlappAction.test_api_78dk_app_base_getWsAuditResult()
def test_09api_78dk_app_loan_alipay_getAlipayVid(self): #获取支付宝验签Vid #{} res = JtlappAction.test_api_78dk_app_loan_alipay_getAlipayVid()
def test_08api_78dk_app_base_getFddResult(self): #获取法大大合同签订结果 #{} # time.sleep(15) res = JtlappAction.test_api_78dk_app_base_getFddResult()
def test_07api_78dk_app_base_getFddUrl(self): #获取法大大合同地址 #{} res = JtlappAction.test_api_78dk_app_base_getFddUrl()