Commit 83bdb9117f298765290442a937322fa89ad5d6ee
1 parent
3bf2e6ee
修复流变化通知的json格式
Showing
1 changed file
with
3 additions
and
1 deletions
src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java
| @@ -3,6 +3,7 @@ package com.genersoft.iot.vmp.utils.redis; | @@ -3,6 +3,7 @@ package com.genersoft.iot.vmp.utils.redis; | ||
| 3 | import java.util.*; | 3 | import java.util.*; |
| 4 | import java.util.concurrent.TimeUnit; | 4 | import java.util.concurrent.TimeUnit; |
| 5 | 5 | ||
| 6 | +import com.alibaba.fastjson.JSONObject; | ||
| 6 | import org.springframework.beans.factory.annotation.Autowired; | 7 | import org.springframework.beans.factory.annotation.Autowired; |
| 7 | import org.springframework.data.redis.core.*; | 8 | import org.springframework.data.redis.core.*; |
| 8 | import org.springframework.stereotype.Component; | 9 | import org.springframework.stereotype.Component; |
| @@ -730,7 +731,8 @@ public class RedisUtil { | @@ -730,7 +731,8 @@ public class RedisUtil { | ||
| 730 | } | 731 | } |
| 731 | 732 | ||
| 732 | // ============================== 消息发送与订阅 ============================== | 733 | // ============================== 消息发送与订阅 ============================== |
| 733 | - public void convertAndSend(String channel, String msg) { | 734 | + public void convertAndSend(String channel, JSONObject msg) { |
| 735 | +// redisTemplate.convertAndSend(channel, msg); | ||
| 734 | redisTemplate.convertAndSend(channel, msg); | 736 | redisTemplate.convertAndSend(channel, msg); |
| 735 | 737 | ||
| 736 | } | 738 | } |