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
20e71a04
Commit
20e71a04
authored
Mar 17, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug
parent
d58a3eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
YeebaoInterceptor.java
.../cn/qg/qaplatform/mock/interceptor/YeebaoInterceptor.java
+6
-1
No files found.
src/main/java/cn/qg/qaplatform/mock/interceptor/YeebaoInterceptor.java
View file @
20e71a04
...
@@ -154,7 +154,12 @@ public class YeebaoInterceptor implements HandlerInterceptor {
...
@@ -154,7 +154,12 @@ public class YeebaoInterceptor implements HandlerInterceptor {
responseMap
.
put
(
"bankcode"
,
"ABC"
);
responseMap
.
put
(
"bankcode"
,
"ABC"
);
// printWriter.write(encryptConvertor.encrypt(JsonTransUtils.mapToJson(responseMap)));
// printWriter.write(encryptConvertor.encrypt(JsonTransUtils.mapToJson(responseMap)));
returnResponse
(
response
,
encryptConvertor
.
encrypt
(
JsonTransUtils
.
mapToJson
(
responseMap
)));
returnResponse
(
response
,
encryptConvertor
.
encrypt
(
JsonTransUtils
.
mapToJson
(
responseMap
)));
return
false
;
return
true
;
}
if
(
uri
.
equals
(
"/tzt-api/api/divide/record"
))
{
String
responseStr
=
"{\"dividelist\":[{\"divideamount\":\"0.01\",\"dividevalue\":\"0.01\",\"dividemode\":\"AMOUNT\",\"ledgerno\":\"10000449633\"}],\"errorcode\":\"\",\"errormsg\":\"\",\"free1\":\"\",\"free2\":\"\",\"free3\":\"\",\"merchantno\":\"10000449592\",\"requestno\":\"67467179200514\",\"sign\":\"RzhX1vUEQp1nI5lDCeroMr0VgOJ1pQknwN++Y7oyTUAvHErLUtZcNQulCUlh3iwlzRHWL5uJain6NQ79Z2T38MZ8hqDohpReFH31YMWoDytJJpS5B2zLTVZIyHq4GmjmS/HXDpvZnMgoZibOESLsKLbS7dTnhdxy8ceDliJhBQ4=\",\"status\":\"DIVIDE_SUCCESS\",\"yborderid\":\"TZNC19ec1bd4222e489c9409854452b31138\"}"
;
returnResponse
(
response
,
responseStr
);
return
true
;
}
}
if
(
mock
.
getFlag
().
equals
(
1
))
{
if
(
mock
.
getFlag
().
equals
(
1
))
{
responseMap
=
JsonTransUtils
.
strToMap
(
mock
.
getSuccess
());
responseMap
=
JsonTransUtils
.
strToMap
(
mock
.
getSuccess
());
...
...
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