|
@@ -70,12 +70,12 @@ public class PlannerServiceImpl implements PlannerService{
|
|
|
pp.setOperationTime(currentTime);//操作时间
|
|
|
pp.setHash(hash);//操作hash
|
|
|
userMapper.insertOperationHistory(pp);//插入到操作记录表去
|
|
|
- ProtobufBean protobufBean = blockChainUtil.getProtobufBean(pp.getSign());
|
|
|
+ /* ProtobufBean protobufBean = blockChainUtil.getProtobufBean(pp.getSign());
|
|
|
String result = blockChainUtil.sendPostParam(protobufBean);
|
|
|
- boolean flag = blockChainUtil.vilaResult(result);
|
|
|
-// boolean flag = blockChainUtil.sendBlockChain(pp.getSign());//发送签名直接转发到区块链
|
|
|
+ boolean flag = blockChainUtil.vilaResult(result);*/
|
|
|
+ boolean flag = blockChainUtil.sendBlockChain(pp.getSign());//发送签名直接转发到区块链
|
|
|
if(!flag) {
|
|
|
- throw new RuntimeException("区块链操作失败:"+result);
|
|
|
+ throw new RuntimeException("区块链操作失败:");
|
|
|
}
|
|
|
|
|
|
}
|