Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
98c59ac9
Commit
98c59ac9
authored
Mar 31, 2025
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加下发日志
parent
b9a0130c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
device-manager/src/main/java/com/mortals/xhx/thread/SendThirdPartyThread.java
...ain/java/com/mortals/xhx/thread/SendThirdPartyThread.java
+6
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/thread/SendThirdPartyThread.java
View file @
98c59ac9
...
@@ -9,6 +9,7 @@ import com.mortals.framework.util.AbstractThread;
...
@@ -9,6 +9,7 @@ import com.mortals.framework.util.AbstractThread;
import
com.mortals.xhx.base.system.message.MessageService
;
import
com.mortals.xhx.base.system.message.MessageService
;
import
com.mortals.xhx.busiz.rsp.ApiResp
;
import
com.mortals.xhx.busiz.rsp.ApiResp
;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.DeviceMethodEnum
;
import
com.mortals.xhx.common.code.YesNoEnum
;
import
com.mortals.xhx.common.pdu.DeviceReq
;
import
com.mortals.xhx.common.pdu.DeviceReq
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -62,10 +63,13 @@ public class SendThirdPartyThread extends AbstractThread {
...
@@ -62,10 +63,13 @@ public class SendThirdPartyThread extends AbstractThread {
for
(
DeviceReq
deviceMsgReq
:
deviceMsgReqs
)
{
for
(
DeviceReq
deviceMsgReq
:
deviceMsgReqs
)
{
String
phpInUrl
=
GlobalSysInfo
.
getParamValue
(
PARAM_SERVER_PHP_IN_HTTP_URL
,
"http://127.0.0.1:11078/zwfw_api"
);
String
phpInUrl
=
GlobalSysInfo
.
getParamValue
(
PARAM_SERVER_PHP_IN_HTTP_URL
,
"http://127.0.0.1:11078/zwfw_api"
);
ApiResp
<
String
>
resp
=
messageService
.
sendThirdParty
(
UrlBuilder
.
of
(
phpInUrl
).
addPath
(
thirdPartyPath
).
build
(),
deviceMsgReq
);
ApiResp
<
String
>
resp
=
messageService
.
sendThirdParty
(
UrlBuilder
.
of
(
phpInUrl
).
addPath
(
thirdPartyPath
).
build
(),
deviceMsgReq
);
if
(
YesNoEnum
.
NO
.
getValue
()
==
resp
.
getCode
())
{
log
.
info
(
"sendThirty req==>{} TYPE:{} \n resp ==>{}"
,
JSON
.
toJSONString
(
deviceMsgReq
),
DeviceMethodEnum
.
getByValue
(
deviceMsgReq
.
getDeviceStatus
()).
getDesc
(),
JSON
.
toJSONString
(
resp
));
log
.
info
(
"sendThirty req==>{} TYPE:{} \n resp ==>{}"
,
JSON
.
toJSONString
(
deviceMsgReq
),
DeviceMethodEnum
.
getByValue
(
deviceMsgReq
.
getDeviceStatus
()).
getDesc
(),
JSON
.
toJSONString
(
resp
));
}
}
}
}
}
}
}
@Override
@Override
...
...
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