Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-devicemonitor
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6648e1a1
authored
Sep 13, 2021
by
黄小葱
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
处理异常
1 parent
90ce949a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/RemoteDeviceService.java
src/main/java/cn/com/glsx/devicemonitor/modules/service/impl/RemoteDeviceService.java
View file @
6648e1a
...
@@ -30,6 +30,7 @@ public class RemoteDeviceService {
...
@@ -30,6 +30,7 @@ public class RemoteDeviceService {
//加密得到sign
//加密得到sign
String
sign
=
GopUtil
.
sign
(
tparams
,
appSecret
);
String
sign
=
GopUtil
.
sign
(
tparams
,
appSecret
);
tparams
.
put
(
"sign"
,
sign
);
tparams
.
put
(
"sign"
,
sign
);
try
{
String
result
=
HttpUtils
.
get
(
url
,
tparams
);
String
result
=
HttpUtils
.
get
(
url
,
tparams
);
JSONObject
resultObj
=
JSONObject
.
parseObject
(
result
);
JSONObject
resultObj
=
JSONObject
.
parseObject
(
result
);
if
(
resultObj
==
null
)
{
if
(
resultObj
==
null
)
{
...
@@ -48,5 +49,9 @@ public class RemoteDeviceService {
...
@@ -48,5 +49,9 @@ public class RemoteDeviceService {
}
}
TrackInfoBo
trackInfoBo
=
JSONObject
.
parseObject
(
data
,
TrackInfoBo
.
class
);
TrackInfoBo
trackInfoBo
=
JSONObject
.
parseObject
(
data
,
TrackInfoBo
.
class
);
return
trackInfoBo
;
return
trackInfoBo
;
}
catch
(
Exception
e
)
{
log
.
info
(
"调用虎哥E盾标准接口查询设备信息异常:{}"
,
e
.
getMessage
());
}
return
null
;
}
}
}
}
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