Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 11d8d1c7
authored
Jan 02, 2025
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
临时去除签名校验
1 parent
a834b876
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
src/main/java/cn/com/glsx/stdinterface/modules/controller/ApiRegionSearchController.java
src/main/java/cn/com/glsx/stdinterface/modules/controller/ApiRegionSearchController.java
View file @
11d8d1c
...
@@ -50,12 +50,13 @@ public class ApiRegionSearchController {
...
@@ -50,12 +50,13 @@ public class ApiRegionSearchController {
return
R
.
error
(
"服务未配置请求地址"
);
return
R
.
error
(
"服务未配置请求地址"
);
}
}
String
sign
=
allParams
.
get
(
"sign"
);
String
signName
=
"paramSign"
;
if
(
StringUtils
.
isBlank
(
sign
))
{
String
sign
=
allParams
.
get
(
signName
);
return
R
.
error
(
"非法请求"
);
// if (StringUtils.isBlank(sign)) {
}
// return R.error("非法请求");
// }
allParams
.
remove
(
"sign"
);
allParams
.
remove
(
signName
);
String
signKey
=
"9D5960AF539436DC35D0C697BC4A113E"
;
String
signKey
=
"9D5960AF539436DC35D0C697BC4A113E"
;
StringBuilder
signStrBuilder
=
new
StringBuilder
(
signKey
);
StringBuilder
signStrBuilder
=
new
StringBuilder
(
signKey
);
Set
<
String
>
keySet
=
allParams
.
keySet
();
Set
<
String
>
keySet
=
allParams
.
keySet
();
...
@@ -67,9 +68,10 @@ public class ApiRegionSearchController {
...
@@ -67,9 +68,10 @@ public class ApiRegionSearchController {
});
});
signStrBuilder
.
append
(
signKey
);
signStrBuilder
.
append
(
signKey
);
String
localSign
=
MD5Util
.
encrypt
(
signStrBuilder
.
toString
()).
toUpperCase
();
String
localSign
=
MD5Util
.
encrypt
(
signStrBuilder
.
toString
()).
toUpperCase
();
if
(!
localSign
.
equals
(
sign
))
{
// if (!localSign.equals(sign)) {
return
R
.
error
(
"非法请求"
);
// log.info("签名错误 localSign:{}", localSign);
}
// return R.error("非法请求");
// }
try
{
try
{
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
CloseableHttpClient
httpClient
=
HttpClients
.
createDefault
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment