Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-platform
Commits
f6a9ecc8
Commit
f6a9ecc8
authored
Mar 12, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
d2a502c4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
46 deletions
+46
-46
PayInterceptor.java
...ava/cn/qg/qaplatform/mock/interceptor/PayInterceptor.java
+1
-1
Xyqb.java
src/test/java/cn/qg/qaplatform/test/Xyqb.java
+45
-45
No files found.
src/main/java/cn/qg/qaplatform/mock/interceptor/PayInterceptor.java
View file @
f6a9ecc8
...
@@ -64,7 +64,7 @@ public class PayInterceptor implements HandlerInterceptor {
...
@@ -64,7 +64,7 @@ public class PayInterceptor implements HandlerInterceptor {
EncryptConvertor
encryptConvertor
=
EncryptFactory
.
produce
(
"yeebao"
);
EncryptConvertor
encryptConvertor
=
EncryptFactory
.
produce
(
"yeebao"
);
Map
<
String
,
Object
>
requestMap
=
JsonTransUtils
.
strToMap
(
encryptConvertor
.
decrypt
(
getRequestBody
(
request
)));
Map
<
String
,
Object
>
requestMap
=
JsonTransUtils
.
strToMap
(
encryptConvertor
.
decrypt
(
getRequestBody
(
request
)));
Map
<
String
,
Object
>
responseMap
=
new
HashMap
<>();
Map
<
String
,
Object
>
responseMap
=
new
HashMap
<>();
if
(
uri
.
equals
(
"/tzt-api/api/bankcard/check"
))
{
if
(
uri
.
equals
(
"/
mock/
tzt-api/api/bankcard/check"
))
{
responseMap
.
put
(
"bankCode"
,
"ABC"
);
responseMap
.
put
(
"bankCode"
,
"ABC"
);
responseMap
.
put
(
"bankName"
,
"中国农业银行"
);
responseMap
.
put
(
"bankName"
,
"中国农业银行"
);
responseMap
.
put
(
"cardTop"
,
"622827"
);
responseMap
.
put
(
"cardTop"
,
"622827"
);
...
...
src/test/java/cn/qg/qaplatform/test/Xyqb.java
View file @
f6a9ecc8
...
@@ -17,10 +17,10 @@ import java.util.List;
...
@@ -17,10 +17,10 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
public
class
Xyqb
{
public
class
Xyqb
{
public
static
String
namespace
=
"vcc
2
"
;
public
static
String
namespace
=
"vcc
3
"
;
public
static
Integer
channelId
=
1
;
public
static
Integer
channelId
=
1
;
public
static
Integer
fundId
=
480
;
public
static
Integer
fundId
=
480
;
public
static
String
phone
=
"1
8300000120
"
;
public
static
String
phone
=
"1
3502760991
"
;
public
static
String
token
=
""
;
public
static
String
token
=
""
;
public
static
String
uuid
=
""
;
public
static
String
uuid
=
""
;
public
static
Long
userId
;
public
static
Long
userId
;
...
@@ -664,34 +664,34 @@ public class Xyqb {
...
@@ -664,34 +664,34 @@ public class Xyqb {
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
// 分配资金方
// 分配资金方
loginFundOP
();
//
loginFundOP();
unblockLoan
();
//
unblockLoan();
boolean
result
=
assignFundOrNot
();
//
boolean result = assignFundOrNot();
if
(!
result
)
{
//
if (!result) {
setFundPlan
();
//
setFundPlan();
unblockLoan
();
//
unblockLoan();
}
//
}
//
// 授信
//
//
授信
login
();
//
login();
checkUserId
();
//
checkUserId();
// 如果是云信,则需要插入银行卡
//
// 如果是云信,则需要插入银行卡
if
(
fundId
==
1040
)
{
//
if (fundId == 1040) {
insertBankCardOfYunxing
();
//
insertBankCardOfYunxing();
}
//
}
syncSessionToXyqb
();
//
syncSessionToXyqb();
creditSessionSync
();
//
creditSessionSync();
realNameVerified
();
//
realNameVerified();
authBasicInfo
();
//
authBasicInfo();
enterAuthOcr
();
//
enterAuthOcr();
uploadFrontOfIdCard
();
//
uploadFrontOfIdCard();
uploadBackOfIdCard
();
//
uploadBackOfIdCard();
submitPhotoAuth
();
//
submitPhotoAuth();
credit
();
//
credit();
submitAudit
();
//
submitAudit();
queryUserAuditRecord
();
//
queryUserAuditRecord();
creditAuthNotify
();
//
creditAuthNotify();
Thread
.
sleep
(
180000
);
//
Thread.sleep(180000);
// 绑卡提现
// 绑卡提现
login
();
login
();
...
@@ -701,21 +701,21 @@ public class Xyqb {
...
@@ -701,21 +701,21 @@ public class Xyqb {
getUserAccountId
();
getUserAccountId
();
bindCard
();
bindCard
();
cardAuthSms
();
cardAuthSms
();
cardAuthSmsConfirm
();
//
cardAuthSmsConfirm();
getBindCardList
();
//
getBindCardList();
createLoan
();
//
createLoan();
externalQuotaOrderAuditNotify
();
//
externalQuotaOrderAuditNotify();
modifyContactStatus
();
//
modifyContactStatus();
Thread
.
sleep
(
10000
);
//
Thread.sleep(10000);
// 放款
//
// 放款
loginOP
();
//
loginOP();
checkWaitingFundingCorpOperatePeople
();
//
checkWaitingFundingCorpOperatePeople();
modifyWaitingFundingCreatedAt
();
//
modifyWaitingFundingCreatedAt();
Thread
.
sleep
(
10000
);
//
Thread.sleep(10000);
fundsPlanLoanApply
();
//
fundsPlanLoanApply();
Thread
.
sleep
(
10000
);
//
Thread.sleep(10000);
payNotify
();
//
payNotify();
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment