Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
5385434a
Commit
5385434a
authored
Jan 31, 2024
by
YG8999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备操作,redis队列下发消息
parent
38a82faf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
RedisUtil.java
...mmon/src/main/java/share/common/core/redis/RedisUtil.java
+1
-1
MqttxServiceImpl.java
...main/java/share/system/service/impl/MqttxServiceImpl.java
+1
-1
No files found.
share-common/src/main/java/share/common/core/redis/RedisUtil.java
View file @
5385434a
...
@@ -265,7 +265,7 @@ public class RedisUtil {
...
@@ -265,7 +265,7 @@ public class RedisUtil {
* @param index 下标
* @param index 下标
* @param v 值
* @param v 值
*/
*/
public
void
set
(
String
k
,
Integer
index
,
Object
v
)
{
public
void
set
ListByIndex
(
String
k
,
Integer
index
,
Object
v
)
{
redisTemplate
.
opsForList
().
set
(
k
,
index
,
v
);
redisTemplate
.
opsForList
().
set
(
k
,
index
,
v
);
}
}
...
...
share-system/src/main/java/share/system/service/impl/MqttxServiceImpl.java
View file @
5385434a
...
@@ -728,7 +728,7 @@ public class MqttxServiceImpl implements MqttxService {
...
@@ -728,7 +728,7 @@ public class MqttxServiceImpl implements MqttxService {
// 更新发送次数,并修改重新加入队列
// 更新发送次数,并修改重新加入队列
vo
.
setRefreshNum
(
vo
.
getRefreshNum
()
+
1
);
vo
.
setRefreshNum
(
vo
.
getRefreshNum
()
+
1
);
vo
.
setSendSmsResult
(
0
);
vo
.
setSendSmsResult
(
0
);
redisUtil
.
set
(
key
,
-
1
,
vo
);
redisUtil
.
set
ListByIndex
(
key
,
-
1
,
vo
);
// 重新发送mqtt消息
// 重新发送mqtt消息
// 异步执行, 间隔5秒
// 异步执行, 间隔5秒
// 延时执行操作
// 延时执行操作
...
...
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