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

new html

parent 3a97fcfc
...@@ -3,9 +3,9 @@ a = 1 ...@@ -3,9 +3,9 @@ a = 1
channnelid = 159866 channnelid = 159866
fundcorpid = 580 fundcorpid = 580
merchantid = 27 merchantid = 27
execjsonversion = {} # {'configuration_center':'1.0.1','zhongtai_hetong':'1.0.1','account':'2.0','risk':'2.0','trade':'2.0','zijin':'2.0','msg':'1.0.1'} execjsonversion = {'trade':'h1.0'} # {'configuration_center':'1.0.1','zhongtai_hetong':'1.0.1','account':'2.0','risk':'2.0','trade':'h1.0','zijin':'2.0','msg':'1.0.1'}
issimple = 0 issimple = 1
finalenv = 0 finalenv = 1
[baseinfo] [baseinfo]
usered = qa usered = qa
...@@ -23,17 +23,13 @@ amounts = [2000,4000,6000,10000,20000,30000] ...@@ -23,17 +23,13 @@ amounts = [2000,4000,6000,10000,20000,30000]
productids = [1,4] productids = [1,4]
repaymenttypes = [微信,支付宝,银行卡] repaymenttypes = [微信,支付宝,银行卡]
counter = 0 counter = 0
totalamount = 10000.0
totalamount = 6875.33 loanid = 448
loanid = 5
totalloanamount = 1004.61 totalloanamount = 1004.61
termno = 9 termno = 9
verificationid = BK751417141686117278698537 verificationid = BK751417141686117278698537
applyno = AN000000144618983447142400 applyno = AN000000144618983447142400
[globalvar] [globalvar]
password = 123456aaa password = 123456aaa
biztype = 0 biztype = 0
...@@ -48,14 +44,12 @@ hetongtoken = a758d7e9323225494c74a52b3a43af3e ...@@ -48,14 +44,12 @@ hetongtoken = a758d7e9323225494c74a52b3a43af3e
cardno = 6222020250206050660 cardno = 6222020250206050660
msgtoken = {token} msgtoken = {token}
sceneid = 5 sceneid = 5
deadline = 1590479021000 deadline = 1590666275000
paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5 paymenttoken = ff928a66-15f2-444f-852a-e4cff2a508e5
requestid = 63119890137088 requestid = 63119890137088
vcode = 238345 vcode = 238345
applyno = AN000000143183669801000960 applyno = AN000000143183669801000960
voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI voicetoken = eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODgxNTE1OTgsInVzZXJuYW1lIjoidHgueHlxYiJ9.W4fKn-tdbOORELBfUd6KOjrygjzWWFY0zf6dmcqsjiI
logindata = {'uuid': '1ba1de90-172c-4f2d-a2be-a6771962a063', 'channelId': 159866, 'productId': '1', 'channelType': '1', 'source': 2, 'phoneNo': '13255741029', 'idCard': '152500193108182914', 'name': '周丹', 'compatibleExtData': {}} logindata = {'uuid': '1ba1de90-172c-4f2d-a2be-a6771962a063', 'channelId': 159866, 'productId': '1', 'channelType': '1', 'source': 2, 'phoneNo': '13255741029', 'idCard': '152500193108182914', 'name': '周丹', 'compatibleExtData': {}}
[testsuit] [testsuit]
...@@ -64,7 +58,7 @@ cases_number1 = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,4 ...@@ -64,7 +58,7 @@ cases_number1 = [358, 359, 360,323, 382, 383, 384, 385,361, 402, 403, 404, 405,4
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_payment person_test_number = case_number_trade
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]
...@@ -75,9 +69,9 @@ case_number_zijin = [517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, ...@@ -75,9 +69,9 @@ case_number_zijin = [517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528,
case_number_zijintemp = [{'zijin': [517, 518, 519, 520, 521, 523, 524, 525, 526, 527, 529, 530, 531, 532, 533, 534, 535, 550, 551, 552, 553, 554, 555, 556, 557, 562, 579, 580, 581, 587, 588, 640, 641, 642, 727, 728, 729, 730, 731, 745, 746, 747]}] case_number_zijintemp = [{'zijin': [517, 518, 519, 520, 521, 523, 524, 525, 526, 527, 529, 530, 531, 532, 533, 534, 535, 550, 551, 552, 553, 554, 555, 556, 557, 562, 579, 580, 581, 587, 588, 640, 641, 642, 727, 728, 729, 730, 731, 745, 746, 747]}]
case_number_account = [{'account':[594, 598, 599, 604, 605, 606, 686, 687, 696,721]}] case_number_account = [{'account':[594, 598, 599, 604, 605, 606, 686, 687, 696,721]}]
case_number_configuration_center = [{'configuration_center':[590, 591, 592, 681, 682, 683,814,815]}] case_number_configuration_center = [{'configuration_center':[590, 591, 592, 681, 682, 683,814,815]}]
case_number_payment = [{'passportapi':[323,382,383,384]},{'payment':[565, 566, 607, 608, 609, 610, 611, 652, 688, 716, 743, 744, 762, 763, 764, 819,834, 831, 833,832]}] case_number_payment = [{'passportapi':[323,382,383,384]},{'payment':[565, 566, 607, 608, 609, 610, 611, 652, 688, 716, 743, 744, 762, 763, 764, 819, 831, 832, 833, 834]}]
case_number_risk = [{'risk':[643, 644, 645, 646, 647, 648, 649, 650, 651, 654, 717, 718, 719, 720]}] case_number_risk = [{'risk':[643, 644, 645, 646, 647, 648, 649, 650, 651, 654, 717, 718, 719, 720]}]
case_number_trade = [{'trade':[617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 689, 732, 733, 734, 735, 736, 737, 738, 739, 740, 741, 742, 743, 744]}] case_number_trade = [{'trade':[617, 618, 619, 620, 621, 622, 623, 624, 625, 626, 627, 628, 629, 630, 631, 632, 633, 634, 635, 636, 637, 638, 639, 689, 732, 733, 734, 736, 737, 738, 739, 740, 741, 742, 852, 859, 860, 861, 862, 863, 864, 865, 866, 867]}]
case_number_zhongtai_hetong = [{'zhongtai_hetong':[277, 684, 711, 713, 811, 812, 813]}] case_number_zhongtai_hetong = [{'zhongtai_hetong':[277, 684, 711, 713, 811, 812, 813]}]
case_number_voice = [{'voice':['758', '757', '756']}] case_number_voice = [{'voice':['758', '757', '756']}]
case_number_sidecar = [{'sidecar':[807,806,810]},{'configuration_center':[814,815]},{'zhongtai_hetong':[811,812,813]},{'msg':[808,809]},{'payment':[762]}] case_number_sidecar = [{'sidecar':[807,806,810]},{'configuration_center':[814,815]},{'zhongtai_hetong':[811,812,813]},{'msg':[808,809]},{'payment':[762]}]
...@@ -93,8 +87,11 @@ case_number_case_fengkong_refuse = [{'koala_risk':[699]},{'usercenter':[500]},{' ...@@ -93,8 +87,11 @@ case_number_case_fengkong_refuse = [{'koala_risk':[699]},{'usercenter':[500]},{'
case_number_case_tixian = [{'ka_koala_loan':[801,818,798,799,800,802,820]}] case_number_case_tixian = [{'ka_koala_loan':[801,818,798,799,800,802,820]}]
case_number_case_fangkuan = [{'ka_koala_loan':[835]},{'zijin':[824,822]}] case_number_case_fangkuan = [{'ka_koala_loan':[835]},{'zijin':[824,822]}]
[sqldata] [sqldata]
sqldata = [404, '6222020243457719151', 0, 0, 0, 0, '沈博裕', '12011019670327487X', '13805732771'] sqldata = ['AN000000140595662094934016']
[circleData]
circledata = [(1,), (2,)]
circleflag = 1
circleparam = 1
...@@ -174,7 +174,7 @@ if __name__ == '__main__': ...@@ -174,7 +174,7 @@ if __name__ == '__main__':
# name='funding_plan' # name='funding_plan'
# name='case_fengkong' # name='case_fengkong'
# name = 'case_fengkong_refuse' # name = 'case_fengkong_refuse'
name='case_tixian' name='trade'
# name = 'case_fangkuan' # name = 'case_fangkuan'
# ############ # ############
......
...@@ -27,12 +27,11 @@ class requestResult: ...@@ -27,12 +27,11 @@ class requestResult:
def __init__(self,config,casefile): def __init__(self,config,casefile):
self.casefilemeta=casefile self.casefilemeta=casefile
self.casefile=readCaseFile(casefile) self.casefile=readCaseFile(casefile)
self.config = config self.config = config
self.keydata = rwKeyData(config)
if not int(self.keydata.readKeyData("channnel","finalenv")): if not int(self.keydata.readKeyData("channnel","finalenv")):
self.config=kconfig.get(self.casefile.get('env')) or self.config self.config=kconfig.get(self.casefile.get('env')) or self.config
print(self.config)
self.keydata = rwKeyData(config)
#setGloablValue(self.keydata,self.casefile) #setGloablValue(self.keydata,self.casefile)
...@@ -703,7 +702,7 @@ if __name__ == '__main__': ...@@ -703,7 +702,7 @@ if __name__ == '__main__':
cases_number=[787] cases_number=[787]
# cases_number=[753] # cases_number=[753]
cases_number=[800] cases_number=[867]
#cases_number = [369,370,409,373] #cases_number = [369,370,409,373]
...@@ -717,7 +716,7 @@ if __name__ == '__main__': ...@@ -717,7 +716,7 @@ if __name__ == '__main__':
casefile = [{'ka_koala_repay': t.split(',')}] casefile = [{'ka_koala_repay': t.split(',')}]
casefile =[{'ka_koala_loan': t.split(',')}] casefile =[{'trade': t.split(',')}]
#print(casefile) #print(casefile)
......
...@@ -117,6 +117,17 @@ class ka2Config(baseConfig): ...@@ -117,6 +117,17 @@ class ka2Config(baseConfig):
db = "xyqb" db = "xyqb"
charset="utf8" charset="utf8"
class ka1Config(baseConfig):
namespace='ka1'
type="mysql"
host = "172.17.5.2"
port = 32071
user = "qa"
pw = "qatest"
db = "xyqb"
charset="utf8"
class test1Config(baseConfig): class test1Config(baseConfig):
namespace='test1' namespace='test1'
type="mysql" type="mysql"
...@@ -153,6 +164,7 @@ class msgConfig(baseConfig): ...@@ -153,6 +164,7 @@ class msgConfig(baseConfig):
config={ config={
"test":testConfig, "test":testConfig,
"ka2":ka2Config, "ka2":ka2Config,
"ka1":ka1Config,
"qa":qaConfig, "qa":qaConfig,
"qa2":qa2Config, "qa2":qa2Config,
"test1":test1Config, "test1":test1Config,
......
This diff is collapsed.
This diff is collapsed.
...@@ -34,7 +34,8 @@ def deal_globalParam(config,param): ...@@ -34,7 +34,8 @@ def deal_globalParam(config,param):
( '[' in v and ']' in v ) or ( '[' in v and ']' in v ) or
('/middle_office/user/ext/' in param.get('url')) \ ('/middle_office/user/ext/' in param.get('url')) \
or (('json' in param.get('header').get('Content-Type') or 'json' in param.get('header').get('content-type')))) \ or (('json' in param.get('header').get('Content-Type') or 'json' in param.get('header').get('content-type')))) \
and ( '/external/quota/auth_amount_audit/notify'!=param.get('url') and '/middle_office/quota/order_audit/notify'!= param.get('url')): and ( '/external/quota/auth_amount_audit/notify'!=param.get('url') and '/middle_office/quota/order_audit/notify'!= param.get('url')
and '/middle_office/risk/audit/result'!=param.get('url')):
# ('json' in param.get('header').get('Content-Type') or 'json' in param.get('header').get('content-type')): # ('json' in param.get('header').get('Content-Type') or 'json' in param.get('header').get('content-type')):
......
...@@ -118,27 +118,31 @@ def getGlobalParam(config,usered): ...@@ -118,27 +118,31 @@ def getGlobalParam(config,usered):
def dealSign(casejson): def dealSign(casejson):
security_code='security_code=6jby7jiy4tv3scaj8pw6sgyxips05afe' security_code='security_code=6jby7jiy4tv3scaj8pw6sgyxips05afe'
body=casejson.get('body') body=casejson.get('body')
appId=body.get('app_id') try:
if body and isinstance(body,dict): appId=body.get('app_id')
#print("+++" * 20) if body and isinstance(body,dict):
#print("+++" * 20)
if body.get('sign') or body.get('sign')==0:
body=dict(sorted(body.items())) if body.get('sign') or body.get('sign')==0:
#print("+++"*20) body=dict(sorted(body.items()))
if len(str(body.get('sign')))>=0:# and type=='md5': #print("+++"*20)
temp='' if len(str(body.get('sign')))>=0:# and type=='md5':
for k,v in body.items(): temp=''
if not k=='sign': for k,v in body.items():
t=k+"="+str(v)+"&" if not k=='sign':
temp+=t t=k+"="+str(v)+"&"
if appId and appId=='xyqb': temp+=t
temp=temp+'security_code=cd6yFfEgI0t67JaOYtLxTqXvumfJbsZi' if appId and appId=='xyqb':
else: temp=temp+'security_code=cd6yFfEgI0t67JaOYtLxTqXvumfJbsZi'
temp=temp+security_code else:
print('temp=====', temp) temp=temp+security_code
casejson['body']['sign']=hashlib.md5(temp.encode()).hexdigest() print('temp=====', temp)
casejson['body']['sign']=hashlib.md5(temp.encode()).hexdigest()
#print(casejson) #print(casejson)
return casejson return casejson
except:
return casejson
def dealSha1(date): def dealSha1(date):
#elif len(str(body.get('sign'))) >= 0 and type == 'sha1': #elif len(str(body.get('sign'))) >= 0 and type == 'sha1':
...@@ -206,7 +210,7 @@ if __name__ == '__main__': ...@@ -206,7 +210,7 @@ if __name__ == '__main__':
#print(t) #print(t)
tt=[] tt=[]
t='/Users/dm/Desktop/python_script/autoInterface/testCase/payment' t='/Users/dm/Desktop/python_script/autoInterface/testCase/trade'
for i in os.listdir(t): for i in os.listdir(t):
......
...@@ -262,6 +262,7 @@ if __name__ == "__main__": ...@@ -262,6 +262,7 @@ if __name__ == "__main__":
names=['ka_koala_loan','koala_risk','risk'] names=['ka_koala_loan','koala_risk','risk']
# names = ['ka_koala_loan','zijin'] # names = ['ka_koala_loan','zijin']
# names=['zhongtai_hetong','msg','configuration_center'] # names=['zhongtai_hetong','msg','configuration_center']
names=['trade']
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -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
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
"repayOrderNo": "%s", "repayOrderNo": "%s",
"ip": "%s", "ip": "%s",
"cardNo": "%s", "cardNo": "%s",
"merchantId": "10007", "merchantId": "10002",
"xyqbUserId": "%s", "xyqbUserId": "%s",
"repaymentDescription": "%s", "repaymentDescription": "%s",
"divideParam": "[{'ledgerNo':64,'divideValue':'2568.68'},{'ledgerNo':1008,'divideValue':'252.00'}]", "divideParam": "[{'ledgerNo':64,'divideValue':'2568.68'},{'ledgerNo':1008,'divideValue':'252.00'}]",
...@@ -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
...@@ -35,4 +35,4 @@ ...@@ -35,4 +35,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
...@@ -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
...@@ -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
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,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/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -18,4 +18,4 @@ ...@@ -18,4 +18,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -11,4 +11,4 @@ ...@@ -11,4 +11,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -51,4 +51,4 @@ ...@@ -51,4 +51,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ 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
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -22,4 +22,4 @@ ...@@ -22,4 +22,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
"type": "transaction", "type": "transaction",
"execjsonversion": "1.0,2.0", "execjsonversion": "1.0,2.0",
"rule": { "rule": {
"progress,isActive,transactionStatus": "getCircle(rigth=[(15,'true',2),(23,'false',4)])" "progress,isActive,transactionStatus": "getCircle(rigth=[(23,'false',4),(15,'true',2)])"
}, },
"body": { "body": {
"loanId": "%s", "loanId": "%s",
...@@ -24,4 +24,4 @@ ...@@ -24,4 +24,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -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
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -44,4 +44,4 @@ ...@@ -44,4 +44,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -15,4 +15,4 @@ ...@@ -15,4 +15,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -13,4 +13,4 @@ ...@@ -13,4 +13,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ 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
...@@ -32,4 +32,4 @@ ...@@ -32,4 +32,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ 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
...@@ -25,4 +25,4 @@ ...@@ -25,4 +25,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -17,4 +17,4 @@ ...@@ -17,4 +17,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -21,4 +21,4 @@ ...@@ -21,4 +21,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ 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
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -27,4 +27,4 @@ ...@@ -27,4 +27,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
{
"method": "POST",
"commit": "创建放款单及资金清单-哈啰(POST)",
"url": "/middle_office/loan",
"casename": "token",
"sql": "select a.id as aid,concat(d.available_amount),6,223,'0.23',concat(d.available_amount),'250',b.id,b.name,4000,'2.76',100,1000,1000,c.order_no,d.id from xyqb.quota_credit c \r\n join xyqb_user.user a on a.id=c.user_id \r\n join xyqb.quota_account d on d.user_id=a.id \r\n join xyqb.funding_corp b\r\nwhere d.is_active=1 and d.total_amount!=0 and d.available_amount>=3000 and c.order_no not in (\r\nselect order_no from xyqb.loan_account_ext where order_no is not null\r\n) order by rand() limit 1;",
"db": "msg",
"execjsonversion": "1.0,1.1,2.0,h1.0",
"result": {
"code": "0",
"exist_a": "select * from xyqb.loan_application_history where user_id={{sqldata_0}} and progress=24 and created_at >=DATE_SUB(now(),INTERVAL 10 MINUTE)",
"exist_b": "select total_amount-available_amount=freeze_amount from xyqb.quota_account where id={{sqldata_-1}};"
},
"type": "transaction",
"rule": {
"productId,businessType": "getCircle([100000],[101])"
},
"body": {
"userId": "%s",
"progress": "24",
"channelId": "1",
"createdFrom": "159854",
"businessType": "%s",
"contractLoanAmount": "%s",
"contractTerm": "%s",
"serviceFeePerTerm": "%s",
"oneTimeServiceFee": "0",
"monthlyInterestRate": "%s",
"totalRepaymentAmount": "%s",
"monthlyRepayment": "%s",
"fundingCorpId": "%s",
"fundingCorpName": "%s",
"realLoanAmount": "%s",
"annualInterestRate": "%s",
"principalAndInterestPerTerm": "%s",
"totalPrincipalAndInterest": "%s",
"companyIncome": "%s",
"transactionFlowId": "0",
"productId": "%s",
"transactionStatus": "0",
"redPacketStrategy": "",
"orderNo": "%s",
"accountId": "%s"
},
"header": {
"Content-Type": "application/json"
}
}
{
"method": "POST",
"commit": "创建放款单及资金清单-哈啰异常term(POST)",
"url": "/middle_office/loan",
"casename": "token",
"sql": "select a.id as aid,concat(d.available_amount),24,223,'0.23',10000,'250',b.id,b.name,10000,'2.76',100,1000,1000,c.order_no,d.id from xyqb.quota_credit c \r\n join xyqb_user.user a on a.id=c.user_id \r\n join xyqb.quota_account d on d.user_id=a.id \r\n join xyqb.funding_corp b\r\nwhere d.is_active=1 and d.total_amount!=0 and d.available_amount!=0 and c.order_no not in (\r\nselect order_no from xyqb.loan_account_ext where order_no is not null\r\n);",
"db": "msg",
"execjsonversion": "1.0,1.1,2.0,h1.0",
"result": {
"code": "40608",
"exist_a": "select * from xyqb.loan_application_history where user_id={{sqldata_0}} and progress=24 and created_at >=DATE_SUB(now(),INTERVAL 10 MINUTE)"
},
"type": "transaction",
"rule": {
"productId,businessType": "getCircle([100000],[101])"
},
"body": {
"userId": "%s",
"progress": "24",
"channelId": "1",
"createdFrom": "159854",
"businessType": "%s",
"contractLoanAmount": "%s",
"contractTerm": "%s",
"serviceFeePerTerm": "%s",
"oneTimeServiceFee": "0",
"monthlyInterestRate": "%s",
"totalRepaymentAmount": "%s",
"monthlyRepayment": "%s",
"fundingCorpId": "%s",
"fundingCorpName": "%s",
"realLoanAmount": "%s",
"annualInterestRate": "%s",
"principalAndInterestPerTerm": "%s",
"totalPrincipalAndInterest": "%s",
"companyIncome": "%s",
"transactionFlowId": "0",
"productId": "%s",
"transactionStatus": "0",
"redPacketStrategy": "",
"orderNo": "%s",
"accountId": "%s"
},
"header": {
"Content-Type": "application/json"
}
}
{
"method": "POST",
"commit": "创建放款单及资金清单-哈啰异常放款金额(POST)",
"url": "/middle_office/loan",
"casename": "token",
"sql": "select a.id as aid,11000,6,223,'0.23',4000,'250',b.id,b.name,20000,'2.76',100,1000,1000,c.order_no,d.id from xyqb.quota_credit c \r\n join xyqb_user.user a on a.id=c.user_id \r\n join xyqb.quota_account d on d.user_id=a.id \r\n join xyqb.funding_corp b\r\nwhere d.is_active=1 and d.total_amount!=0 and d.available_amount!=0 and c.order_no not in (\r\nselect order_no from xyqb.loan_account_ext where order_no is not null\r\n);",
"db": "msg",
"execjsonversion": "1.0,1.1,2.0,h1.0",
"result": {
"code": "40604",
"exist_a": "select * from xyqb.loan_application_history where user_id={{sqldata_0}} and progress=24 and created_at >=DATE_SUB(now(),INTERVAL 10 MINUTE)"
},
"type": "transaction",
"rule": {
"productId,businessType": "getCircle([100000],[101])"
},
"body": {
"userId": "%s",
"progress": "24",
"channelId": "1",
"createdFrom": "159854",
"businessType": "%s",
"contractLoanAmount": "%s",
"contractTerm": "%s",
"serviceFeePerTerm": "%s",
"oneTimeServiceFee": "0",
"monthlyInterestRate": "%s",
"totalRepaymentAmount": "%s",
"monthlyRepayment": "%s",
"fundingCorpId": "%s",
"fundingCorpName": "%s",
"realLoanAmount": "%s",
"annualInterestRate": "%s",
"principalAndInterestPerTerm": "%s",
"totalPrincipalAndInterest": "%s",
"companyIncome": "%s",
"transactionFlowId": "0",
"productId": "%s",
"transactionStatus": "0",
"redPacketStrategy": "",
"orderNo": "%s",
"accountId": "%s"
},
"header": {
"Content-Type": "application/json"
}
}
{
"method": "PATCH",
"commit": "结清修改状态借款完成-哈啰(PATCH)",
"url": "/middle_office/loan/status/clean",
"casename": "token",
"sql": "select distinct d.id,d.progress,IF(d.progress=16,'false','true'),'false','一单一审结清,关联,time=2020-02-03',a.id,\r\nb.biz_id,a.id,a.total_amount,b.biz_type,b.`status`,a.uuid,a.user_id,a.product_id,c.order_no,'false'\r\nfrom xyqb.quota_account a\r\njoin xyqb.quota_account_log b on a.id=b.account_id\r\njoin xyqb.quota_credit c on c.user_id=b.user_id \r\njoin xyqb.loan_application_history d on a.user_id=d.user_id\r\nwhere a.product_id=100000 order by rand() limit 1;",
"db": "msg",
"execjsonversion": "2.0,h1.0",
"result": {
"code": "0"
},
"type": "transaction",
"body": {
"loanId": "%s",
"progress": "%s",
"isActive": "%s",
"quotaAccount": "{'isActive': '%s', 'remark': '%s', 'id': '%s'}",
"quotaAccountLog": "{'bizId': '%s', 'accountId': '%s', 'amount': '%s', 'bizType': '%s', 'status': '%s', 'uuid': '%s', 'userId': '%s', 'productId': '%s'}",
"quotaCredit": "{'orderNo': '%s', 'isActive': '%s'}"
},
"header": {
"Content-Type": "application/json"
}
}
{
"method": "GET",
"commit": "授信审核结果查询(GET)",
"url": "/middle_office/credit/audit_result",
"casename": "token",
"sql": "select a.order_no,a.user_id from xyqb.apply_quota_record a \r\n\tjoin xyqb.quota_credit b on a.order_no=b.order_no\r\n\tjoin xyqb.assets_order c on c.out_trade_no=a.id\r\n\tjoin xyqb.quota_account e on e.user_id=a.user_id\r\n\tjoin xyqb.assign_funding_record d on d.asset_order_id=c.id and d.user_id=a.user_id\r\n\twhere b.credit_status=1 and d.assign_status=3 and e.is_active=1\r\n\tand a.apply_status=2 and b.order_no is not null and b.is_active=1 and b.product_id is not null order by rand() limit 1;",
"db": "msg",
"execjsonversion": "h1.0",
"result": {
"code": "0",
"mustexist": "['code', 'userId', 'creditStatus', 'orderNo', 'approvalAmount', 'approvalTerm', 'monthlyInterestRate', 'validDate', 'updateTime']"
},
"type": "transaction",
"body": {
"orderNo": "%s",
"userId": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "GET",
"commit": "根据授信单号查询「额度期数限制json串-哈啰(GET)",
"url": "/middle_office/risk/audit/query_amount_term_limits",
"casename": "token",
"sql": "SELECT order_no from xyqb.credit_amount_term_record order by rand() limit 1;",
"db": "msg",
"execjsonversion": "2.2,h1.0",
"result": {
"code": "0",
"mustexist": "['code']",
"notmustexist": "['data']"
},
"type": "transaction",
"body": {
"orderNo": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "GET",
"commit": "授信审核结果查询-isactive0(GET)",
"url": "/middle_office/credit/audit_result",
"casename": "token",
"sql": "select a.order_no,a.user_id from xyqb.apply_quota_record a join xyqb.quota_credit b on a.order_no=b.order_no where b.credit_status=1 and b.order_no is not null and b.is_active=0 and b.product_id is not null order by rand() limit 1;",
"db": "msg",
"execjsonversion": "h1.0",
"result": {
"code": "40602",
"mustexist": "['code', 'userId', 'creditStatus', 'orderNo', 'approvalAmount', 'approvalTerm', 'monthlyInterestRate', 'productId', 'validDate', 'updateTime']"
},
"type": "transaction",
"body": {
"orderNo": "%s",
"userId": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "GET",
"commit": "授信审核结果查询-40601(GET)",
"url": "/middle_office/credit/audit_result",
"casename": "token",
"sql": "select a.order_no,a.user_id from xyqb.apply_quota_record a join xyqb.quota_credit b on a.order_no=b.order_no where b.credit_status=1 and b.order_no is not null and b.is_active=0 and b.product_id is not null order by rand() limit 1;",
"db": "msg",
"execjsonversion": "h1.0",
"result": {
"code": "40601",
"mustexist": "['code', 'userId', 'creditStatus', 'orderNo', 'approvalAmount', 'approvalTerm', 'monthlyInterestRate', 'productId', 'validDate', 'updateTime']"
},
"type": "transaction",
"body": {
"orderNo": "AN0000001405989090902097922",
"userId": "71"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "PATCH",
"commit": "风控单审核结果(通过,拒绝)-哈啰(PATCH)",
"url": "/middle_office/risk/audit/result",
"casename": "token",
"sql": "select order_no from xyqb.apply_quota_record order by rand() limit 1;",
"db": "msg",
"result": {
"code": "0"
},
"type": "transaction",
"execjsonversion": "1.0,1.1,2.0,h1.0",
"rule": {
"riskNotifyTime": "gettime(0,all=1)",
"applyStatus,": "getCircle([1,2])"
},
"body": {
"orderNo": "%s",
"riskNotifyTime": "%s",
"applyStatus": "%s",
"amountTermLimits": "[{'amountMin':'4000','amountMax':'10000','terms':'6,9'},{'amountMin':'3000','amountMax':'4000','terms':'3,6'},{'amountMin':'2000','amountMax':'3000','terms':'3'}]"
},
"header": {
"Content-Type": "application/json"
}
}
...@@ -10,4 +10,4 @@ ...@@ -10,4 +10,4 @@
}, },
"body": "[\r\n {\r\n 'templateId': '%s',\r\n 'userId': '%s',\r\n'mustReal':'false',\r\n'sourceId':'%s',\r\n 'callbackLink': 'http://192.168.4.96:8003/out-custom_link',\r\n 'fileds': {\r\n 'userId':'%s',\r\n 'templateId':'%s',\r\n 'contractNo':'%s' ,\r\n'sourceId':'%s',\r\n'ssqContractNo':'%s'\r\n\t\r\n }\r\n }\r\n]", "body": "[\r\n {\r\n 'templateId': '%s',\r\n 'userId': '%s',\r\n'mustReal':'false',\r\n'sourceId':'%s',\r\n 'callbackLink': 'http://192.168.4.96:8003/out-custom_link',\r\n 'fileds': {\r\n 'userId':'%s',\r\n 'templateId':'%s',\r\n 'contractNo':'%s' ,\r\n'sourceId':'%s',\r\n'ssqContractNo':'%s'\r\n\t\r\n }\r\n }\r\n]",
"sql": "select b.id,a.user_id,a.source_id,a.user_id,b.id,a.contract_no,a.source_id,a.ssq_contract_no from contract.contracts a \r\n\tjoin contract.contract_template_new b on b.id!=a.template_id where length(a.ssq_contract_no)>0 order by rand() limit 1;" "sql": "select b.id,a.user_id,a.source_id,a.user_id,b.id,a.contract_no,a.source_id,a.ssq_contract_no from contract.contracts a \r\n\tjoin contract.contract_template_new b on b.id!=a.template_id where length(a.ssq_contract_no)>0 order by rand() limit 1;"
} }
\ 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