Commit 74312aa4 authored by jinfang.liu's avatar jinfang.liu

new

parent 42c93494
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
</component> </component>
<component name="NewModuleRootManager"> <component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" /> <content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.7 (autoInterface-HOcLM3wc)" jdkType="Python SDK" /> <orderEntry type="jdk" jdkName="Python 3.7.0 (/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module" module-name="panda-test" /> <orderEntry type="module" module-name="panda-test" />
<orderEntry type="module" module-name="autoCreateCase" /> <orderEntry type="module" module-name="autoCreateCase" />
......
...@@ -3,5 +3,5 @@ ...@@ -3,5 +3,5 @@
<component name="JavaScriptSettings"> <component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" /> <option name="languageLevel" value="ES6" />
</component> </component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7" project-jdk-type="Python SDK" /> <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.7.0 (/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7)" project-jdk-type="Python SDK" />
</project> </project>
\ No newline at end of file
...@@ -3,21 +3,24 @@ ...@@ -3,21 +3,24 @@
"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": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -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"
...@@ -16,4 +16,4 @@ ...@@ -16,4 +16,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -3,24 +3,27 @@ ...@@ -3,24 +3,27 @@
"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`='{{applyno}}'\r\nand c.`funding_corp_id`=100010;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"setup": {
"a": "clear_redis()"
},
"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"
} }
} }
\ No newline at end of file
...@@ -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",
...@@ -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
...@@ -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"
...@@ -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": "/v1/quota/support/bank",
"casename": "token",
"result": {
"code": "0"
},
"type": "koala",
"param": {
"orderNo": "{{applyno}}"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
{
"method": "GET",
"commit": "考拉查询借款清单接口(GET)",
"url": "/v1/loan/manifest",
"casename": "token",
"sql": "select a.`loan_application_history_id`\r\nfrom xyqb.loan_application_manifest_history a\r\ninner join xyqb_user.user b\r\non a.`user_id`=b.`id`\r\nwhere b.`phone_no`='{{phone_no}}'; ",
"db": "xyqb",
"result": {
"code": "0"
},
"type": "koala",
"body": {
"loanId": "%s"
},
"header": {
"Content-Type": "application/x-www-form-urlencoded"
}
}
...@@ -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
...@@ -29,4 +29,4 @@ ...@@ -29,4 +29,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
...@@ -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
...@@ -30,4 +30,4 @@ ...@@ -30,4 +30,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
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "风控结果通过(POST)", "commit": "风控结果通过(POST)",
"url": "/v1/risk_management/audit/receive_risk_control_result", "url": "/v1/risk_management/audit/receive_risk_control_result",
"casename": "token", "casename": "token",
"sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','true',unix_timestamp('20200501')*1000 as deadline, 710 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';", "sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','true',unix_timestamp('20201201')*1000 as deadline, 100010 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -21,9 +21,9 @@ ...@@ -21,9 +21,9 @@
"term": "12", "term": "12",
"deadLine": "%s", "deadLine": "%s",
"extData": "{'ces':'测试'}", "extData": "{'ces':'测试'}",
"financeProducts": "[{'min':10000,'max':10000,'terms':[{'term':12,'fundInfo':[{'fundId':'%s','rate':'0','rateType':1,'priority':'1','feeType':'1'}]}]}]" "financeProducts": "[{'min':10000,'max':10000,'terms':[{'fundInfo':[{'rateType':1,'fundId':%s,'rate':'0','priority':1,'feeType':1,'fundProductId':100000}],'term':12}]}]"
}, },
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "KA创建申请单(POST)", "commit": "KA创建申请单(POST)",
"url": "/v1/credit_order/create", "url": "/v1/credit_order/create",
"casename": "token", "casename": "token",
"sql": "select a.`uuid`,'1','1',a.`phone_no`,b.`id_no`,b.`name` from xyqb_user.user a\r\njoin xyqb_user.user_detail b\r\non a.`phone_no`=b.`phone_no`\r\nwhere a.registered_from = 100001\r\norder by rand() limit 1;", "sql": "select a.`uuid`,'1','1',a.`phone_no`,b.`id_no`,b.`name` from xyqb_user.user a\r\njoin xyqb_user.user_detail b\r\non a.`phone_no`=b.`phone_no`\r\nwhere a.phone_no={{phone_no}};",
"db": "xyqb_user", "db": "xyqb_user",
"result": { "result": {
"code": "0" "code": "0"
...@@ -23,4 +23,4 @@ ...@@ -23,4 +23,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "风控结果拒绝(POST)", "commit": "风控结果拒绝(POST)",
"url": "/v1/risk_management/audit/receive_risk_control_result", "url": "/v1/risk_management/audit/receive_risk_control_result",
"casename": "token", "casename": "token",
"sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','false',unix_timestamp('20200501')*1000 as deadline, 710 as `funding_corp_id` \r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';", "sql": "select 'success', a.`channel_id`,a.`uuid`, 0 as 'sceneId','false',unix_timestamp('20200701')*1000 as deadline\r\nfrom business_flow.apply_list a \r\nwhere a.`enable`=1 \r\nand a.apply_no='{{applyno}}';",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
...@@ -22,6 +22,6 @@ ...@@ -22,6 +22,6 @@
"refuseReason": "{'ces':'测试审核拒绝'}" "refuseReason": "{'ces':'测试审核拒绝'}"
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/x-www-form-urlencoded"
} }
} }
\ No newline at end of file
...@@ -3,16 +3,17 @@ ...@@ -3,16 +3,17 @@
"commit": "接收资方审核结果-审核通过(POST)", "commit": "接收资方审核结果-审核通过(POST)",
"url": "/v1/risk_management/mo_clotho/receive_funding_party_audit_result", "url": "/v1/risk_management/mo_clotho/receive_funding_party_audit_result",
"casename": "token", "casename": "token",
"sql": "select `uuid`\r\nfrom xyqb.`apply_quota_record` a\r\nwhere a.apply_status='{{applyno}}' order by a.id desc limit 1;", "sql": "select id from xyqb.apply_quota_record where order_no='{{applyno}}' order by id desc limit 1;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"body": { "body": {
"uuid": "%s", "applyId": "%s",
"orderNo": "{{applyno}}", "orderNo": "{{applyno}}",
"status": "ASSIGN_SUCCESS" "status": "ASSIGN_SUCCESS",
"amount": "10000"
}, },
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
......
...@@ -3,12 +3,13 @@ ...@@ -3,12 +3,13 @@
"commit": "提交授信申请 ( 给考拉 ) (POST)", "commit": "提交授信申请 ( 给考拉 ) (POST)",
"url": "/v1/risk_management/audit/credit_application/submit", "url": "/v1/risk_management/audit/credit_application/submit",
"casename": "token", "casename": "token",
"sql": "select 214 as channel_id,a.uuid\r\nfrom business_flow.apply_list a\r\nwhere a.apply_no='{{applyno}}'\r\norder by a.id desc limit 1;", "sql": "select a.`channel_id`,a.uuid\r\nfrom business_flow.apply_list a\r\ninner join `xyqb_user`.user b\r\non a.`uuid`=b.`uuid`\r\nwhere a.apply_no='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb", "db": "xyqb",
"result": { "result": {
"code": "0" "code": "0"
}, },
"type": "koala", "type": "koala",
"sleep": "3",
"body": { "body": {
"channelId": "%s", "channelId": "%s",
"productId": "1", "productId": "1",
...@@ -20,4 +21,4 @@ ...@@ -20,4 +21,4 @@
"header": { "header": {
"Content-Type": "application/json" "Content-Type": "application/json"
} }
} }
\ No newline at end of file
...@@ -11,8 +11,4 @@ ...@@ -11,8 +11,4 @@
"header": { "header": {
"Content-Type": "application/x-www-form-urlencoded" "Content-Type": "application/x-www-form-urlencoded"
} }
<<<<<<< HEAD
} }
=======
}
>>>>>>> 3d8e005ec0cf8077584962695e1dcd2ab39c7343
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
"commit": "公用风控数据导入(POST)", "commit": "公用风控数据导入(POST)",
"url": "/spider-center/middle_office/ex/import/risk_infos", "url": "/spider-center/middle_office/ex/import/risk_infos",
"casename": "token", "casename": "token",
"sql": "select a.uuid,a.product_type,a.channel_id \r\nfrom business_flow.apply_list a\r\ninner join xyqb_user.user b\r\non a.`uuid`=b.`uuid`\r\nwhere b.`phone_no`='{{phone_no}}'\r\norder by a.id desc limit 1;", "sql": "select a.uuid,a.product_type,a.channel_id \r\nfrom business_flow.apply_list a\r\ninner join xyqb_user.user b\r\non a.`uuid`=b.`uuid`\r\nwhere a.`apply_no`='{{applyno}}'\r\norder by a.id desc limit 1;",
"db": "xyqb_user", "db": "xyqb_user",
"result": { "result": {
"code": "0" "code": "0"
......
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