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 baffa533
authored
Apr 25, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
319ac0e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
src/main/java/cn/com/glsx/consumer/service/InfoService.java
src/main/java/cn/com/glsx/consumer/service/InfoService.java
View file @
baffa53
...
@@ -100,18 +100,19 @@ public class InfoService {
...
@@ -100,18 +100,19 @@ public class InfoService {
(
SmartSceneData
condition
)
->
getTriggerResult
(
condition
));
(
SmartSceneData
condition
)
->
getTriggerResult
(
condition
));
// 温度控制
// 温度控制
Object
o
=
redisService
.
get
(
key
);
Object
o
=
redisService
.
get
(
key
);
if
(
isTrigger
&&
!
in
.
getFlag
())
{
if
(!
in
.
getFlag
())
{
if
(
o
==
null
)
{
if
(
isTrigger
)
{
redisService
.
set
(
key
,
key
);
if
(
o
==
null
)
{
}
else
{
redisService
.
set
(
key
,
key
);
log
.
info
(
"场景id{}温湿度已经触发过一次"
,
index
.
getSceneId
());
}
else
{
return
;
log
.
info
(
"场景id{}温湿度已经触发过一次"
,
index
.
getSceneId
());
return
;
}
}
else
{
// 重新触发的话
redisService
.
delete
(
key
);
}
}
}
}
// 重新触发的话
if
(!
isTrigger
&&
!
in
.
getFlag
())
{
redisService
.
delete
(
key
);
}
log
.
info
(
"场景id{}---{}触发条件"
,
index
.
getSceneId
(),
isTrigger
?
"符合"
:
"不符合"
);
log
.
info
(
"场景id{}---{}触发条件"
,
index
.
getSceneId
(),
isTrigger
?
"符合"
:
"不符合"
);
if
(
isTrigger
)
{
if
(
isTrigger
)
{
// 下发场景
// 下发场景
...
...
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