diff --git a/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/MarketApplyServiceImpl.java b/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/MarketApplyServiceImpl.java index 2debd24..9ea15ab 100644 --- a/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/MarketApplyServiceImpl.java +++ b/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/MarketApplyServiceImpl.java @@ -204,7 +204,7 @@ public class MarketApplyServiceImpl implements MarketApplyService { null, null, null, null); //如果用户的广告列表有未完成或着未取消的广告,抛出异常 for (ListUserAdDTO ad : ads) { - if (!ad.getAdStatus().equals(AdConstants.CANCEL) || !ad.getAdStatus().equals(AdConstants.FINISH)) { + if (!ad.getAdStatus().equals(AdConstants.CANCEL) && !ad.getAdStatus().equals(AdConstants.FINISH)) { throw new OtcException(OtcEnums.CANCEL_MARKET_AD_NO_NULL); } } diff --git a/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/WalletServiceImpl.java b/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/WalletServiceImpl.java index 267ade1..1787611 100644 --- a/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/WalletServiceImpl.java +++ b/blockchain-server/blockchain-server-otc/src/main/java/com/blockchain/server/otc/service/impl/WalletServiceImpl.java @@ -103,10 +103,10 @@ public class WalletServiceImpl implements WalletService { @Override public void isPassword(String pass) { LOG.info("校验密码,参数:" + pass); -// if (StringUtils.isBlank(pass)) { TODO -// throw new OtcException(OtcEnums.PASS_NULL); -// } -// ethFeign.isPassword(pass); + if (StringUtils.isBlank(pass)) { + throw new OtcException(OtcEnums.PASS_NULL); + } + ethFeign.isPassword(pass); } /***