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
c61294b2
Commit
c61294b2
authored
May 14, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加离线 上线日志
parent
05ba8777
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
device-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
...java/com/mortals/xhx/busiz/web/TestSendMsgController.java
+12
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/busiz/web/TestSendMsgController.java
View file @
c61294b2
...
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
import
cn.hutool.http.HttpUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.mortals.framework.service.ICacheService
;
import
com.mortals.framework.service.ILogService
;
import
com.mortals.framework.service.impl.FileLogServiceImpl
;
import
com.mortals.xhx.busiz.req.TestReq
;
...
...
@@ -43,6 +44,8 @@ public class TestSendMsgController {
private
ProductService
productService
;
@Autowired
private
DeviceService
deviceService
;
@Autowired
private
ICacheService
cacheService
;
/**
* 发送日志消息
...
...
@@ -126,6 +129,15 @@ public class TestSendMsgController {
}
@RequestMapping
(
value
=
"{key}/{value}"
,
method
=
RequestMethod
.
GET
)
public
String
setData
(
@PathVariable
(
"key"
)
String
key
,
@PathVariable
(
"value"
)
String
value
)
{
cacheService
.
set
(
key
,
value
);
String
s
=
cacheService
.
get
(
key
);
return
s
;
}
public
static
void
main
(
String
[]
args
)
{
String
resp
=
HttpUtil
.
get
(
"http://59.225.206.13:8331/oauth-pro/admin-pro/sys/randomImage/1675827431800?_t=1675827431"
);
...
...
@@ -152,8 +164,6 @@ public class TestSendMsgController {
*/
}
...
...
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