Commit c6543e07 authored by 桂秋月's avatar 桂秋月

解决编码问题

parent 69632ff7
...@@ -11,7 +11,7 @@ usered = qa ...@@ -11,7 +11,7 @@ usered = qa
defaluttime = 2 defaluttime = 2
timeout = 20 timeout = 20
phone_no = 13700000001 phone_no = 13700000001
environment = msg environment = pre
term = 6 term = 6
amount = 10000 amount = 10000
productid = 1 productid = 1
...@@ -30,13 +30,13 @@ termno = 4 ...@@ -30,13 +30,13 @@ termno = 4
[globalvar] [globalvar]
password = 123456aaa password = 123456aaa
biztype = 0 biztype = 0
logindata = None logindata = phone=13700000001
token = eb298e58-b438-4437-ab29-70973e7210a2 token = eb298e58-b438-4437-ab29-70973e7210a2
passportapitoken = 834a1109-bb71-4cfb-ad1f-f31225439a8b passportapitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e
opapitoken = 5375b6c5-527e-4c3a-8c66-b9ef96a7412d opapitoken = 5375b6c5-527e-4c3a-8c66-b9ef96a7412d
cardnoprovider = ICBC cardnoprovider = ICBC
apitoken = aef03bc7-2b7a-4b86-bb32-4c4321b404ab apitoken = 1396bf28-64f4-44b6-9eec-bb334c08fc5e
mapitoken = d695c065-540a-40a1-8f18-749e1d0cfc30 mapitoken = 75d2421775d0b74ca27b28677bfa63410285
quotarecordorderno = {'msg': None, 'code': '0000', 'data': []} quotarecordorderno = {'msg': None, 'code': '0000', 'data': []}
hetongtoken = a758d7e9323225494c74a52b3a43af3e hetongtoken = a758d7e9323225494c74a52b3a43af3e
cardno = 6222020234701809463 cardno = 6222020234701809463
...@@ -46,15 +46,16 @@ deadline = 1589164833000 ...@@ -46,15 +46,16 @@ deadline = 1589164833000
paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5 paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5
requestid = 63119890137088 requestid = 63119890137088
vcode = 238345 vcode = 238345
applyno = AN000000140595662094934016 applyno = AN000000143183669801000960
voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI
[testsuit] [testsuit]
cases_number1 = [816,817,358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,574,575,577,576,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397] cases_numbertemp = [{'passportapi':[816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,574,575,577,576,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397]}]
cases_number1 = [816,817,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,574,575,577,576,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397]
case_number_fengkong = [509, 510, 511, 512, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549] case_number_fengkong = [509, 510, 511, 512, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549]
case_number3 = [358, 359, 360,323,382, 383,399, 385,407,367,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397] case_number3 = [358, 359, 360,323,382, 383,399, 385,407,367,368,371,372,374,375,376,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 392,389, 390, 394, 395, 396, 397]
case_number_usercenter = [504, 494, 508,479, 477, 498, 476, 499, 495, 483, 505, 488, 471, 502, 484, 492, 493, 503, 470, 489, 473, 490, 486, 500, 501, 487, 491, 472, 496, 480, 506, 475, 474, 507, 481, 497, 478,482,485] case_number_usercenter = [504, 494, 508,479, 477, 498, 476, 499, 495, 483, 505, 488, 471, 502, 484, 492, 493, 503, 470, 489, 473, 490, 486, 500, 501, 487, 491, 472, 496, 480, 506, 475, 474, 507, 481, 497, 478,482,485]
person_test_number = case_number_msg person_test_number = cases_number1temp
cases_number_temp = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368] cases_number_temp = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368]
case_number_33 = [358, 359, 360,323,383,385,399,367,372,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 389, 390, 394, 395, 396, 397] case_number_33 = [358, 359, 360,323,383,385,399,367,372,378,363,364,369,370,409,373,410,412,411,413,387, 388,389,390, 391, 389, 390, 394, 395, 396, 397]
case_number_newhetong = [416, 420, 421, 417, 426, 427, 431, 424, 432, 428, 425, 414, 422, 418, 419, 423, 415] case_number_newhetong = [416, 420, 421, 417, 426, 427, 431, 424, 432, 428, 425, 414, 422, 418, 419, 423, 415]
...@@ -79,5 +80,5 @@ case_number_ka_koala_repay = [{'ka_koala_repay':['791','789','790','786','787',' ...@@ -79,5 +80,5 @@ case_number_ka_koala_repay = [{'ka_koala_repay':['791','789','790','786','787','
case_number_test = [{'passportapi':[323,382,383,384]},{'koala_repay':[679, 680]},{'passportapi':[323,382,383,384]}] case_number_test = [{'passportapi':[323,382,383,384]},{'koala_repay':[679, 680]},{'passportapi':[323,382,383,384]}]
[sqldata] [sqldata]
sqldata = [266622] sqldata = [0]
...@@ -42,7 +42,7 @@ koala_risk={'testnumer':'case_number_koala_risk', ...@@ -42,7 +42,7 @@ koala_risk={'testnumer':'case_number_koala_risk',
'casename':'koala_risk','platform':'考拉','reportname':'考拉风审','projectId':43,'psid':7} 'casename':'koala_risk','platform':'考拉','reportname':'考拉风审','projectId':43,'psid':7}
passportapi={'testnumer':'cases_number1', passportapi={'testnumer':'cases_numbertemp',
'casename':'passportapi','platform':'主流程','reportname':'主流程进件','projectId':29,'psid':4} 'casename':'passportapi','platform':'主流程','reportname':'主流程进件','projectId':29,'psid':4}
newhetong={'testnumer':'case_number_newhetong', newhetong={'testnumer':'case_number_newhetong',
......
...@@ -158,7 +158,7 @@ if __name__ == '__main__': ...@@ -158,7 +158,7 @@ if __name__ == '__main__':
##根据name值,从cases_mapping文件找对应的key ##根据name值,从cases_mapping文件找对应的key
name='msg' name='passportapi'
########################### ###########################
# name='account' # name='account'
......
...@@ -14,7 +14,7 @@ from blueprints.tools.dealbody import requesturl,dealbodyHeaderType,deal_globalP ...@@ -14,7 +14,7 @@ from blueprints.tools.dealbody import requesturl,dealbodyHeaderType,deal_globalP
from blueprints.tools.rwKeyData import rwKeyData from blueprints.tools.rwKeyData import rwKeyData
import requests,jsonpath,re,json,os,pickle import requests,jsonpath,re,json,os,pickle
from blueprints.settings import testConfig,qaConfig,ka2Config,qa2Config,test1Config,qa3Config,msgConfig from blueprints.settings import testConfig,qaConfig,ka2Config,qa2Config,test1Config,qa3Config,msgConfig
import warnings,demjson,base64,urllib3,time import warnings,demjson,base64,urllib3,time,html
from blueprints.tools.debugtalk import finalexecaql from blueprints.tools.debugtalk import finalexecaql
from urllib.parse import urlencode from urllib.parse import urlencode
from blueprints.tools.deals import getenv,getenvconfig,dealSign from blueprints.tools.deals import getenv,getenvconfig,dealSign
...@@ -111,7 +111,7 @@ class requestResult: ...@@ -111,7 +111,7 @@ class requestResult:
#print("==="*10,sql) #print("==="*10,sql)
sqlData=delDatabase(self.config,sql,db) sqlData=delDatabase(self.config,sql,db)
self.keydata.writeKeyData('sqldata','sqldata',sqlData) self.keydata.writeKeyData('sqldata','sqldata',sqlData)
#print("从表里查到的数据===", sqlData,self.casefile) print("从表里查到的数据===", sqlData,self.casefile,sql)
casejson = dealbodyHeaderType(self.config, self.casefile, sqlData) casejson = dealbodyHeaderType(self.config, self.casefile, sqlData)
casejson =dealSign(casejson) casejson =dealSign(casejson)
...@@ -399,7 +399,7 @@ class requestResult: ...@@ -399,7 +399,7 @@ class requestResult:
pickle.dump(jianrongces, wfile) pickle.dump(jianrongces, wfile)
result = requests.patch(url, headers=header,verify=False,cookies=pickle.load(file),timeout=self.timeout) result = requests.patch(url, headers=header,verify=False,cookies=pickle.load(file),timeout=self.timeout)
result.encoding = "utf-8"
if re.findall(r'login|signin',url): if re.findall(r'login|signin',url):
try: try:
...@@ -431,21 +431,26 @@ class requestResult: ...@@ -431,21 +431,26 @@ class requestResult:
unicodetostr = 'u' + "'" + result.text + "'" unicodetostr = 'u' + "'" + result.text + "'"
try: try:
print("响应数据===",eval(unicodetostr),"=======end1") if '<!DOCTYPE html>' in result.text or len(result.text) >= 3000:
print("<br>")
print("响应数据11===", re.findall(r'<title>(.*)</title>',result.text)[0] if re.findall(r'<title>(.*)</title>',result.text) else "html文本略" + "........", "=======end3")
print("<br>")
else:
print("响应数据1===",eval(unicodetostr),"=======end1")
print("<br>")
except: except:
try: try:
print("响应数据===",result.json(),"=======end2") print("响应数据2===",result.json(),"=======end2")
print("<br>") print("<br>")
except: except Exception as e:
if '<!DOCTYPE html>' in result.text or len(result.text)>=3000: if '<!DOCTYPE html>' in result.text or len(result.text)>=3000:
print("响应数据===", result.text[0:100]+"........","=======end3") print("响应数据3===",re.findall(r'<title>(.*)</title>',result.text)[0] if re.findall(r'<title>(.*)</title>',result.text) else "html文本略"+"........","=======end3")
print("<br>") print("<br>")
else: else:
print("响应数据===",result.text,"=======end4") print("响应数据4===",result.text[0:10],"=======end4")
print("<br>") print("<br>")
...@@ -463,7 +468,7 @@ class requestResult: ...@@ -463,7 +468,7 @@ class requestResult:
# return result.text # return result.text
except (urllib3.exceptions.ReadTimeoutError, requests.exceptions.ReadTimeout): except (urllib3.exceptions.ReadTimeoutError, requests.exceptions.ReadTimeout):
print("响应数据===", self.person_timeout(),"=======end") print("响应数据5===", self.person_timeout(),"=======end")
print("<br>") print("<br>")
return self.person_timeout() return self.person_timeout()
...@@ -664,13 +669,13 @@ if __name__ == '__main__': ...@@ -664,13 +669,13 @@ if __name__ == '__main__':
#cases_number= [323, 382, 383, 384, 385,361, 402, 403, 404, 405,401] #cases_number= [323, 382, 383, 384, 385,361, 402, 403, 404, 405,401]
cases_number=[452] cases_number=[373]
#cases_number = [369,370,409,373] #cases_number = [369,370,409,373]
#cases_number=[358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368,371,372,374,375,376,378,363,364,369,370] #cases_number=[358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,401,399,407,367,368,371,372,374,375,376,378,363,364,369,370]
t = '.json,'.join([str(i) for i in cases_number]) + ".json" t = '.json,'.join([str(i) for i in cases_number]) + ".json"
# casefile = [{'passportapi':['323.json', '382.json','383.json', '384.json', '385.json']},{'payment': t.split(',')}] # casefile = [{'passportapi':['323.json', '382.json','383.json', '384.json', '385.json']},{'payment': t.split(',')}]
casefile =[{'msg': t.split(',')}] casefile =[{'passportapi': t.split(',')}]
#casefile = [{'passportapi': t.split(',')}] #casefile = [{'passportapi': t.split(',')}]
......
This diff is collapsed.
...@@ -257,7 +257,7 @@ def zentaopms_data(panda_name,projectId,psid): ...@@ -257,7 +257,7 @@ def zentaopms_data(panda_name,projectId,psid):
if __name__ == "__main__": if __name__ == "__main__":
names=['passportapi'] names=['ka_koala_loan','payment']
#names=['zhongtai_hetong','msg','configuration_center'] #names=['zhongtai_hetong','msg','configuration_center']
for name in names: for name in names:
......
...@@ -3,18 +3,21 @@ ...@@ -3,18 +3,21 @@
"commit": "绑卡-发送短信验证码(POST)", "commit": "绑卡-发送短信验证码(POST)",
"url": "/v1/card/bind/send_sms", "url": "/v1/card/bind/send_sms",
"casename": "token", "casename": "token",
"sql": "select b.`order_no`,a.`bank_code`,a.`card_no`,a.`preserve_phone_no`,a.`uid`\r\nfrom payment_center.bank_card a \r\ninner join xyqb.`quota_credit` b\r\non a.`uid`=b.`user_id`\r\nwhere b.`is_active`=1\r\nand a.`uid`=91\r\norder by rand() limit 1;", "sql": "select user_id from xyqb.`apply_quota_record` where order_no='{{applyno}}';",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"sleep": "3", "sleep": "3",
"rule": {
"bankCardNumber": "fakeinfo('cardNo',flag=0)"
},
"body": { "body": {
"applyNumber": "%s", "applyNumber": "{{applyno}}",
"bankCode": "%s", "bankCode": "ICBC",
"bankCardNumber": "%s", "bankCardNumber": "%s",
"reservePhoneNumber": "%s", "reservePhoneNumber": "{{phone_no}}",
"userId": "%s" "userId": "%s"
}, },
"header": { "header": {
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "绑卡-验证短信验证码(POST)", "commit": "绑卡-验证短信验证码(POST)",
"url": "/v1/card/bind/confirm", "url": "/v1/card/bind/confirm",
"casename": "token", "casename": "token",
"sql": "select '000000' as verificationCode from payment_center.bank_card order by rand() limit 1;\r\n", "sql": "select '000000' as verificationCode;\r\n",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "提现(支持绑卡)(POST)", "commit": "提现(支持绑卡)(POST)",
"url": "/v1/loan/submit", "url": "/v1/loan/submit",
"casename": "token", "casename": "token",
"sql": "select a.`user_id`,a.`created_from`,a.`order_no`,b.`product_id`,c.`tmpl_path`,\r\n(case d.purpose\r\nwhen 0 then '测试借款用途'\r\nelse '其他借款用途' end ) as purpose,a.`bank_code`,a.`card_no`,a.`phone_no`\r\nfrom ka_bind_card_record a\r\ninner join xyqb.`loan_application_manifest_history` b\r\ninner join xyqb.funding_contract c\r\ninner join xyqb.ka_loan_purpose d\r\non a.`user_id`=b.`user_id`\r\nand b.`funding_corp_id`=c.`funding_corp_id`\r\nand a.`order_no`=d.`order_no`\r\nwhere a.`order_no`='AN000000131839529448488960'\r\norder by rand() limit 1;", "sql": "select b.`user_id`,c.`tmpl_path`,\r\n'测试借款用途'\r\n as loanPurpose \r\nfrom `xyqb`.`quota_credit` b\r\ninner join xyqb.funding_contract c\r\nwhere b.`order_no`='AN000000143183669801000960'\r\nand c.`funding_corp_id`=100010;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -11,14 +11,14 @@ ...@@ -11,14 +11,14 @@
"type": "koala", "type": "koala",
"body": { "body": {
"userId": "%s", "userId": "%s",
"channelId": "%s", "channelId": "{{channnelid}}",
"applyNumber": "%s", "applyNumber": "{{applyno}}",
"productId": "%s", "productId": "{{productid}}",
"contractIds": "%s", "contractIds": "%s",
"loanPurpose": "%s", "loanPurpose": "%s",
"bankCode": "%s", "bankCode": "ICBC",
"bankCardNumber": "%s", "bankCardNumber": "{{cardno}}",
"reservePhoneNumber": "%s" "reservePhoneNumber": "{{phone_no}}"
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "试算还款计划(GET)", "commit": "试算还款计划(GET)",
"url": "/v1/repayment/repay_trial", "url": "/v1/repayment/repay_trial",
"casename": "token", "casename": "token",
"sql": "select concat(floor(c.`amount`)) as amount,c.`terms`,a.`product_id`,a.`user_id`,a.`order_no`\r\nfrom xyqb.apply_quota_record a\r\ninner join xyqb.apply_funding_risk_record c\r\non a.`user_id`=c.`user_id`\r\nwhere a.user_id=78\r\norder by c.id desc limit 1;", "sql": "select concat(floor(c.`amount`)) as amount,c.`term`,a.`product_id`,a.`user_id`,a.`order_no`\r\nfrom xyqb.apply_quota_record a\r\ninner join xyqb.assets_order c\r\non a.`user_id`=c.`user_id`\r\nwhere a.`apply_status`=2\r\nand a.`order_no`='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0", "code": "0",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "查卡-获取渠道卡列表(GET)", "commit": "查卡-获取渠道卡列表(GET)",
"url": "/v1/card/channel/query", "url": "/v1/card/channel/query",
"casename": "token", "casename": "token",
"sql": "select a.`created_from`,a.`user_id`,1 as action , b.loan_id,a.`order_no`\r\nfrom xyqb.ka_bind_card_record a\r\ninner join xyqb.`loan_account_ext` b\r\non a.`order_no`=b.`order_no`\r\nwhere a.`user_id`=6\r\norder by a.id desc limit 1; ", "sql": "select a.`created_from`,a.`user_id`,1 as action , b.loan_id,a.`order_no`\r\nfrom xyqb.ka_bind_card_record a\r\ninner join xyqb.`loan_account_ext` b\r\ninner join xyqb_user.user c\r\non a.`order_no`=b.`order_no`\r\nand c.id=a.`user_id`\r\nwhere c.`phone_no`='{{phone_no}}'; ",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
......
{
"method": "GET",
"commit": "查看放款支持的银行列表(GET)",
"url": "/v1/quota/support/bank",
"casename": "token",
"result": {
"code": "0"
},
"type": "koala",
"param": {
"orderNo": "{{applyno}}"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
\ No newline at end of file
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"aftersql": "saveuserId(\\'user_id\\')", "aftersql": "saveuserId(\\'user_id\\')",
"beforasql": "select id from xyqb_user.user where phone_no='%s'" "beforasql": "select id from xyqb_user.user where phone_no='%s'"
} }
} }
\ No newline at end of file
...@@ -39,4 +39,4 @@ ...@@ -39,4 +39,4 @@
"address": "fakeinfo('address')", "address": "fakeinfo('address')",
"email": "fakeinfo('email')" "email": "fakeinfo('email')"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
}, },
"db": "xyqb", "db": "xyqb",
"sql": "select u.uuid,l.id from xyqb_user.user u inner join xyqb.loan_application_history l on u.id=l.user_id where u.phone_no='%s' order by l.id desc limit 1;" "sql": "select u.uuid,l.id from xyqb_user.user u inner join xyqb.loan_application_history l on u.id=l.user_id where u.phone_no='%s' order by l.id desc limit 1;"
} }
\ No newline at end of file
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"resule": { "resule": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -12,4 +12,4 @@ ...@@ -12,4 +12,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "api" "type": "api"
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
}, },
"db": "payment_center", "db": "payment_center",
"sql": "select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}'));" "sql": "select id,preserve_phone_no from payment_center.bank_card where user_id in \r\n(select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}'));"
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
}, },
"db": "payment_center", "db": "payment_center",
"sql": "select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}');" "sql": "select a.id from payment_center.bank_card a \r\njoin payment_center.user b on a.user_id=b.id \r\nwhere b.xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}');"
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"db": "payment_center", "db": "payment_center",
"sql": "select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}')) order by id desc limit 1;", "sql": "select id,`bank_card_id` from payment_center.card_bind_info where \r\nuser_id in (select id from payment_center.user where xyqb_uid in (select id from xyqb_user.user where phone_no='{{phone_no}}')) order by id desc limit 1;",
"isurl": "1" "isurl": "1"
} }
\ No newline at end of file
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
"code": "0000" "code": "0000"
}, },
"type": "mapi" "type": "mapi"
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{NAMESPACE}}" "namespace": "{{NAMESPACE}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -7,4 +7,4 @@ ...@@ -7,4 +7,4 @@
"param": { "param": {
"namespace": "{{namespace}}" "namespace": "{{namespace}}"
} }
} }
\ No newline at end of file
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
"result": { "result": {
"code": "0000" "code": "0000"
} }
} }
\ No newline at end of file
...@@ -31,4 +31,4 @@ ...@@ -31,4 +31,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -34,4 +34,4 @@ ...@@ -34,4 +34,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
"result": { "result": {
"code": "0", "code": "0",
"notmustexist": "['msg', 'code', 'certPath']", "notmustexist": "['msg', 'code', 'certPath']",
"certPath": "select fds_path from payment_center.payment_order_certificate where user_id in (select user_id from xyqb.loan_application_history where id={{SqlData_1}})" "certPath": "group1/M00/03/1F/oYYBAF5otMGAcuqjAACjevEXA1o619.zip"
}, },
"type": "payment", "type": "payment",
"body": { "body": {
...@@ -19,4 +19,4 @@ ...@@ -19,4 +19,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
{
"method": "GET",
"commit": "获取支持的银行列表(GET)",
"url": "/ex/common_bank_card/bank_info",
"casename": "token",
"sql": "select merchant_id,biz_type from payment_center.merchant_channel_config where is_active=1 order by rand() limit 1; ",
"db": "xyqb_user",
"result": {
"code": "0",
"mustexist": "['bankName', 'bankCode', 'singleQuota', 'dayQuota']",
"notmustexist": "['msg', 'code', 'businessCode', 'success']"
},
"type": "payment",
"param": {
"merchantId": "%s",
"bizType": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "查询合同存储地址列表 - FastDFS-all(GET)", "commit": "查询合同存储地址列表 - FastDFS-all(GET)",
"url": "/middle_office/download/dfs_urls", "url": "/middle_office/download/dfs_urls",
"casename": "token", "casename": "token",
"sql": "select user_id,source_id,template_id from contract.contracts order by rand() limit 1", "sql": "select user_id,source_id,template_id from contract.contracts where user_id=81 order by rand() limit 1",
"db": "xyqb_user", "db": "xyqb_user",
"result": { "result": {
"code": "0", "code": "0",
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
"type": "hetong", "type": "hetong",
"execjsonversion": "1.0.1", "execjsonversion": "1.0.1",
"param": { "param": {
"sourceId": "%s" "sourceId": "19"
}, },
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment