Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
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 caf47adc
authored
Apr 19, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
7031a077
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
src/main/java/cn/com/glsx/consumer/TestController.java
src/main/java/cn/com/glsx/consumer/TestController.java
View file @
caf47ad
package
cn
.
com
.
glsx
.
consumer
;
package
cn
.
com
.
glsx
.
consumer
;
import
c
n.com.glsx.consumer.service.TuyaConmsumerService
;
import
c
om.alibaba.nacos.common.utils.MD5Utils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
/**
/**
* @author zhouhaibao
* @author zhouhaibao
...
@@ -16,13 +14,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -16,13 +14,8 @@ import org.springframework.web.bind.annotation.ResponseBody;
@Slf4j
@Slf4j
public
class
TestController
{
public
class
TestController
{
@Autowired
private
TuyaConmsumerService
tuyaConmsumerService
;
@RequestMapping
(
"/test"
)
public
static
void
main
(
String
[]
args
)
{
@ResponseBody
System
.
out
.
println
(
MD5Utils
.
md5Hex
(
"13476670746"
,
"utf-8"
));
public
void
test
()
{
String
data
=
"{\"dataId\":\"AAW9APQog9AQo9A81QGYDUAAB\",\"devId\":\"6ce23622e4f6f960c5jhle\",\"productKey\":\"xruwvmir2e41r9db\",\"status\":[{\"code\":\"basic_flip\",\"103\":\"false\",\"t\":1615444744140,\"value\":false}]}"
;
tuyaConmsumerService
.
processMessage
(
data
);
}
}
}
}
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