Commit 700ffe35 by 真的三个金鑫

UOM 上报 发送请求bug

parent 14cae3dc
...@@ -48,11 +48,11 @@ public class UOMRecordService { ...@@ -48,11 +48,11 @@ public class UOMRecordService {
post.header("source", String.valueOf(uomConfiguration.getSource())); post.header("source", String.valueOf(uomConfiguration.getSource()));
post.header("platform", uomConfiguration.getPlatform()); post.header("platform", uomConfiguration.getPlatform());
post.header("programVersion", uomConfiguration.getProgramVersion()); post.header("programVersion", uomConfiguration.getProgramVersion());
post.header("signature",JSONUtil.toJsonStr(sendUOMDTO)); String encrypt = SM3Util.encrypt(JSONUtil.toJsonStr(sendUOMDTO), uomConfiguration.getAppKey());
post.header("signature",encrypt);
post.header("Content-Type","application/json"); post.header("Content-Type","application/json");
sendUOMDTO.setPaths(paths); sendUOMDTO.setPaths(paths);
String encrypt = SM3Util.encrypt(JSONUtil.toJsonStr(sendUOMDTO), uomConfiguration.getAppKey()); post.body(JSONUtil.toJsonStr(sendUOMDTO));
post.body(encrypt);
log.info("UOM Record: " + JSONUtil.toJsonStr(sendUOMDTO)); log.info("UOM Record: " + JSONUtil.toJsonStr(sendUOMDTO));
return post.execute().body(); return post.execute().body();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment