From 38bbbb7091eeda7d468d66c2d0390f846630378e Mon Sep 17 00:00:00 2001 From: liushaodong Date: Fri, 8 Nov 2019 16:22:58 +0800 Subject: [PATCH] =?UTF-8?q?eth=E5=9C=B0=E5=9D=80=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eth/service/impl/EthWalletServiceImpl.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/blockchain-server/blockchain-server-eth/src/main/java/com/blockchain/server/eth/service/impl/EthWalletServiceImpl.java b/blockchain-server/blockchain-server-eth/src/main/java/com/blockchain/server/eth/service/impl/EthWalletServiceImpl.java index 67e3ce8..8420993 100644 --- a/blockchain-server/blockchain-server-eth/src/main/java/com/blockchain/server/eth/service/impl/EthWalletServiceImpl.java +++ b/blockchain-server/blockchain-server-eth/src/main/java/com/blockchain/server/eth/service/impl/EthWalletServiceImpl.java @@ -55,8 +55,8 @@ public class EthWalletServiceImpl implements IEthWalletService, ITxTransaction { IEthWalletTransferService ethWalletTransferService; @Autowired IConfigWalletParamService configWalletParamService; - @Autowired - private UserFeign userFeign; +// @Autowired +// private UserFeign userFeign; @Autowired IWalletWeb3j walletWeb3j; @@ -260,11 +260,11 @@ public class EthWalletServiceImpl implements IEthWalletService, ITxTransaction { @Transactional public EthWalletTransfer handleWelletOutApply(String userOpenId, String tokenAddr, String toAddr, String walletType, String amount, String password) { - ExceptionPreconditionUtils.checkStringNotBlank(toAddr, new EthWalletException(EthWalletEnums.NULL_OUT_TOADDR)); - if (toAddr.length() != EthWalletConstants.WALLERT_LENGTH) { - throw new EthWalletException(EthWalletEnums.OUT_TOADDR_ERROR); - } - toAddr = toAddr.toLowerCase(); +// ExceptionPreconditionUtils.checkStringNotBlank(toAddr, new EthWalletException(EthWalletEnums.NULL_OUT_TOADDR)); +// if (toAddr.length() != EthWalletConstants.WALLERT_LENGTH) { +// throw new EthWalletException(EthWalletEnums.OUT_TOADDR_ERROR); +// } +// toAddr = toAddr.toLowerCase(); EthWalletDTO wallet = selectByUserOpenIdAndTokenAddrAndWalletType(userOpenId, tokenAddr, walletType); // 数据验证 ethWalletKeyService.isPassword(wallet.getUserOpenId(), password); // 验证密码