|
@@ -76,13 +76,13 @@ public class UserServiceImpl implements UserService {
|
|
|
user.setHash(hash);//操作hash
|
|
|
userMapper.insertOperationHistory(user);
|
|
|
|
|
|
- //boolean flag = blockChainUtil.sendBlockChain(sign);//发送签名直接转发到区块链
|
|
|
- ProtobufBean protobufBean = new ProtobufBean();
|
|
|
- Map<String,Object> map1 = JSONUtil.jsonToMap(sign);
|
|
|
- protobufBean.setInstructionId(Long.parseLong(map1.get("sid").toString()));
|
|
|
- protobufBean.setSignature(map1.get("signdata").toString());
|
|
|
- String result = BlockChainUtil.sendPostParam(protobufBean);
|
|
|
- boolean flag = BlockChainUtil.vilaResult(result);
|
|
|
+ boolean flag = blockChainUtil.sendBlockChain(sign);//发送签名直接转发到区块链
|
|
|
+// ProtobufBean protobufBean = new ProtobufBean();
|
|
|
+// Map<String,Object> map1 = JSONUtil.jsonToMap(sign);
|
|
|
+// protobufBean.setInstructionId(Long.parseLong(map1.get("sid").toString()));
|
|
|
+// protobufBean.setSignature(map1.get("signdata").toString());
|
|
|
+// String result = BlockChainUtil.sendPostParam(protobufBean);
|
|
|
+// boolean flag = BlockChainUtil.vilaResult(result);
|
|
|
|
|
|
if(!flag) {
|
|
|
throw new RuntimeException("区块链操作失败");
|