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
a79878d0
authored
Dec 28, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
去掉非必要log
parent
f630ced3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
server-common/src/main/java/com/makeit/global/inteceptor/RequestIdInterceptor.java
server-common/src/main/java/com/makeit/module/iot/service/IotOrgService.java
server-common/src/main/java/com/makeit/global/inteceptor/RequestIdInterceptor.java
View file @
a79878d0
...
...
@@ -23,8 +23,8 @@ public class RequestIdInterceptor implements HandlerInterceptor {
RequestIdUtil
.
set
();
logger
.
info
(
"本次请求ip:{},remoteAddr:{}"
,
IpUtil
.
getIp
(),
IpUtil
.
getRemoteAddr
());
logger
.
info
(
"本次请求路径: {}"
,
request
.
getRequestURI
());
//
logger.info("本次请求ip:{},remoteAddr:{}", IpUtil.getIp(),IpUtil.getRemoteAddr());
//
logger.info("本次请求路径: {}", request.getRequestURI());
return
true
;
}
...
...
server-common/src/main/java/com/makeit/module/iot/service/IotOrgService.java
View file @
a79878d0
...
...
@@ -7,6 +7,7 @@ import com.google.common.collect.Maps;
import
com.makeit.module.admin.vo.plat.PlatTenantVO
;
import
com.makeit.module.iot.dto.IotQueryParam
;
import
com.makeit.module.iot.util.HttpRequest
;
import
com.makeit.module.iot.util.Response
;
import
com.makeit.module.iot.util.SimpleHttpRequest
;
import
com.makeit.module.iot.vo.DeviceInstanceEntity
;
import
com.makeit.module.iot.vo.DeviceProductEntity
;
...
...
@@ -141,7 +142,9 @@ public class IotOrgService extends IotCommonService{
HttpRequest
request
=
buildRequest
(
url
,
body
);
try
{
ResponseMessage
responseMessage
=
sendPost
(
url
,
request
);
Response
response
=
request
.
post
();
Object
result
=
JSON
.
parse
(
response
.
asBytes
());
ResponseMessage
responseMessage
=
JSON
.
parseObject
(
result
.
toString
(),
ResponseMessage
.
class
);
if
(
responseMessage
.
getStatus
()
==
200
)
{
IotPagerResult
pagerResult
=
JSON
.
parseObject
(
responseMessage
.
getResult
().
toString
(),
IotPagerResult
.
class
);
...
...
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