Commit 700ffe35 by 真的三个金鑫

UOM 上报 发送请求bug

parent 14cae3dc
......@@ -48,11 +48,11 @@ public class UOMRecordService {
post.header("source", String.valueOf(uomConfiguration.getSource()));
post.header("platform", uomConfiguration.getPlatform());
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");
sendUOMDTO.setPaths(paths);
String encrypt = SM3Util.encrypt(JSONUtil.toJsonStr(sendUOMDTO), uomConfiguration.getAppKey());
post.body(encrypt);
post.body(JSONUtil.toJsonStr(sendUOMDTO));
log.info("UOM Record: " + JSONUtil.toJsonStr(sendUOMDTO));
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