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 f6a297f4
authored
Apr 23, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
30ec5a2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/main/java/cn/com/glsx/consumer/controller/NoticeController.java
src/main/java/cn/com/glsx/consumer/controller/NoticeController.java
View file @
f6a297f
...
@@ -32,6 +32,7 @@ public class NoticeController {
...
@@ -32,6 +32,7 @@ public class NoticeController {
// 解密请求体信息
// 解密请求体信息
try
{
try
{
log
.
info
(
"消息内容{}"
,
requestBody
);
log
.
info
(
"消息内容{}"
,
requestBody
);
JSONObject
jsonObject1
=
JSONObject
.
parseObject
(
requestBody
);
// 解密传过来的状态值
// 解密传过来的状态值
AqaraEvent
aqaraEvent
=
JSONObject
.
parseObject
(
requestBody
,
AqaraEvent
.
class
);
AqaraEvent
aqaraEvent
=
JSONObject
.
parseObject
(
requestBody
,
AqaraEvent
.
class
);
if
(
Contants
.
MSG_TYPE_RESOURCE
.
equals
(
aqaraEvent
.
getMsgType
())){
if
(
Contants
.
MSG_TYPE_RESOURCE
.
equals
(
aqaraEvent
.
getMsgType
())){
...
@@ -41,7 +42,7 @@ public class NoticeController {
...
@@ -41,7 +42,7 @@ public class NoticeController {
}
}
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"code"
,
0
);
jsonObject
.
put
(
"code"
,
0
);
jsonObject
.
put
(
"result"
,
"glsxtest"
);
jsonObject
.
put
(
"result"
,
jsonObject1
.
getString
(
"echostr"
)
);
return
jsonObject
.
toJSONString
();
return
jsonObject
.
toJSONString
();
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
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