648540858
2021-11-29 83bdb9117f298765290442a937322fa89ad5d6ee
修复流变化通知的json格式
1个文件已修改
4 ■■■ 已修改文件
src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/genersoft/iot/vmp/utils/redis/RedisUtil.java
@@ -3,6 +3,7 @@
import java.util.*;
import java.util.concurrent.TimeUnit;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.*;
import org.springframework.stereotype.Component;
@@ -730,7 +731,8 @@
    }
    //    ============================== 消息发送与订阅 ==============================
    public void convertAndSend(String channel, String msg) {
    public void convertAndSend(String channel, JSONObject msg) {
//        redisTemplate.convertAndSend(channel, msg);
        redisTemplate.convertAndSend(channel, msg);
    }