Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
windows
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
zhanhai
windows
Commits
f89391bd
Commit
f89391bd
authored
1 year ago
by
张庆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增挡板规则
parent
9c36f6fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AbcHttpClient.java
src/main/java/com/jqtx/windows/utils/AbcHttpClient.java
+2
-2
No files found.
src/main/java/com/jqtx/windows/utils/AbcHttpClient.java
View file @
f89391bd
...
...
@@ -33,14 +33,14 @@ public class AbcHttpClient {
log
.
info
(
"请求浙农加密数据:{}"
,
JSON
.
toJSONString
(
request
));
log
.
info
(
"请求浙农url:{}"
,
url
);
HttpResponse
response
=
HttpRequest
.
post
(
url
).
body
(
JSON
.
toJSONString
(
request
)).
setConnectionTimeout
(
5000
).
execute
();
log
.
info
(
"浙农加密返回数据:{}"
,
JSON
.
toJSONString
(
response
.
body
()));
log
.
info
(
"
请求
浙农加密返回数据:{}"
,
JSON
.
toJSONString
(
response
.
body
()));
if
(
response
.
getStatus
()
==
200
&&
StringUtils
.
isNotBlank
(
response
.
body
()))
{
final
String
body
=
response
.
body
();
JSONObject
responseJson
=
JSONObject
.
parseObject
(
body
);
String
content
=
responseJson
.
getString
(
"content"
);
String
sign
=
responseJson
.
getString
(
"sign"
);
String
responseParam
=
AbcRsaUtil
.
decodeParam
(
content
,
sign
,
privateKey
,
ypdPublicKey
);
log
.
info
(
"浙农解密返回数据:{}"
,
JSON
.
toJSONString
(
responseParam
));
log
.
info
(
"
请求
浙农解密返回数据:{}"
,
JSON
.
toJSONString
(
responseParam
));
return
JSONObject
.
parseObject
(
responseParam
,
JsonResult
.
class
);
}
else
{
throw
new
Exception
(
"请求异常"
);
...
...
This diff is collapsed.
Click to expand it.
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