|
@@ -115,10 +115,10 @@ public class UserServiceImpl implements UserService {
|
|
|
user.setHash(hash);//操作hash
|
|
|
userMapper.insertOperationHistory(user);//插入到操作记录表去
|
|
|
|
|
|
- /*boolean flag = blockChainUtil.sendBlockChain(user.getSign());//发送签名直接转发到区块链
|
|
|
+ boolean flag = blockChainUtil.sendBlockChain(user.getSign());//发送签名直接转发到区块链
|
|
|
if(!flag) {
|
|
|
throw new RuntimeException("区块链操作失败");
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|
|
@@ -145,10 +145,10 @@ public class UserServiceImpl implements UserService {
|
|
|
user.setHash(hash);//操作hash
|
|
|
userMapper.insertOperationHistoryOfDelete(user);//插入到操作记录表去
|
|
|
|
|
|
- /*boolean flag = blockChainUtil.sendBlockChain(user.getSign());//发送签名直接转发到区块链
|
|
|
+ boolean flag = blockChainUtil.sendBlockChain(user.getSign());//发送签名直接转发到区块链
|
|
|
if(!flag) {
|
|
|
throw new RuntimeException("区块链操作失败");
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|