Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c502deb3
authored
Jan 16, 2024
by
罗志长
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去除日志
parent
946d14a0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
3 deletions
server-common/src/main/java/com/makeit/module/demo/service/DemoCommonService.java
server-common/src/main/java/com/makeit/module/iot/util/HeaderUtils.java
server-common/src/main/java/com/makeit/module/demo/service/DemoCommonService.java
View file @
c502deb3
...
...
@@ -37,7 +37,6 @@ public class DemoCommonService {
public
HttpRequest
buildRequest
(
String
url
,
String
body
)
{
log
.
info
(
"接口:{},请求参数:{}"
,
url
,
body
);
HttpRequest
request
=
new
SimpleHttpRequest
(
url
,
httpClient
);
HashMap
hashMap
=
JSON
.
parseObject
(
body
,
HashMap
.
class
);
request
.
headers
(
headerUtils
.
createDemoHeadersOfParams
(
hashMap
));
...
...
@@ -65,7 +64,6 @@ public class DemoCommonService {
private
static
DemoResponseMessage
getResponseMessage
(
String
url
,
Response
response
)
throws
IOException
{
Object
result
=
JSON
.
parse
(
response
.
asBytes
());
DemoResponseMessage
responseMessage
=
JSON
.
parseObject
(
result
.
toString
(),
DemoResponseMessage
.
class
);
log
.
info
(
"接口:{},返回信息:{}"
,
url
,
JSON
.
toJSONString
(
responseMessage
));
return
responseMessage
;
}
...
...
server-common/src/main/java/com/makeit/module/iot/util/HeaderUtils.java
View file @
c502deb3
...
...
@@ -95,7 +95,6 @@ public class HeaderUtils {
.
map
(
e
->
e
.
getKey
().
concat
(
"="
).
concat
(
String
.
valueOf
(
e
.
getValue
())))
.
collect
(
Collectors
.
joining
(
"&"
));
System
.
out
.
println
(
paramString
);
paramString
=
paramString
+
"&SecretKey="
+
secretKey
;
MessageDigest
digest
=
DigestUtils
.
getMd5Digest
();
...
...
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