|
@@ -4,6 +4,7 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.DatePattern;
|
|
|
import cn.hutool.core.date.DateUtil;
|
|
|
+import cn.hutool.core.map.MapUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.xy.consumer.MqttConsumer;
|
|
|
import com.xy.dto.MsgConfigTestDto;
|
|
@@ -52,7 +53,7 @@ public class DevicePushMsgConsumer implements MqttConsumer {
|
|
|
String channelType = b.getChannelType();
|
|
|
if (Integer.valueOf(channelType).intValue() == ChannelType.OFFICIAL_ACCOUNT.getCode().intValue()) {
|
|
|
//微信公众号
|
|
|
- Map<String, Object> params = b.getTemplateParams();
|
|
|
+ Map<String, Object> params = MapUtil.newHashMap();
|
|
|
params.put("device", deviceId);
|
|
|
params.put("type", msg);
|
|
|
params.put("time", DateUtil.format(createTime, DatePattern.NORM_DATETIME_PATTERN));
|