|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.logpm.factorydata.suofeiya.service.impl; |
|
|
|
package com.logpm.factorydata.suofeiya.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
import cn.hutool.core.bean.BeanUtil; |
|
|
|
|
|
|
|
import cn.hutool.core.codec.Base64; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.io.FileUtil; |
|
|
|
import cn.hutool.core.io.FileUtil; |
|
|
@ -296,7 +297,8 @@ public class FactoryDataServiceImpl implements FactoryDataService { |
|
|
|
param.put("timestamp", time); |
|
|
|
param.put("timestamp", time); |
|
|
|
// 加密
|
|
|
|
// 加密
|
|
|
|
String digest = MD5.create().digestHex(jsonStr + appKey + time); |
|
|
|
String digest = MD5.create().digestHex(jsonStr + appKey + time); |
|
|
|
param.put("digest", digest); |
|
|
|
String encode = Base64.encode(digest); |
|
|
|
|
|
|
|
param.put("digest", encode); |
|
|
|
log.info("推送节点数据:{}", JSONUtil.toJsonStr(param)); |
|
|
|
log.info("推送节点数据:{}", JSONUtil.toJsonStr(param)); |
|
|
|
String post = HttpUtil.post(dataSuoFeiYaProperties.getPush().getPushHost() + paStatusUrl, param); |
|
|
|
String post = HttpUtil.post(dataSuoFeiYaProperties.getPush().getPushHost() + paStatusUrl, param); |
|
|
|
log.info("推送结果:{}", post); |
|
|
|
log.info("推送结果:{}", post); |
|
|
|