| | |
| | | if(bySymbol == null){ |
| | | throw new YamiShopBindException("当前币对不存在"); |
| | | } |
| | | if (!itemService.isContractTrading(bySymbol)) { |
| | | throw new YamiShopBindException("未开放合约交易"); |
| | | } |
| | | /*if (itemService.isSuspended(bySymbol.getSymbol())) { |
| | | throw new YamiShopBindException("停牌禁止交易"); |
| | | }*/ |
| | | |
| | | |
| | | boolean isOpen = MarketOpenChecker.isMarketOpenByItemCloseType(bySymbol.getOpenCloseType()); |
| | | if(!isOpen){ |
| | | throw new YamiShopBindException("当前已经休市"); |
| | |
| | | this.sessionTokenService.del(session_token); |
| | | User party = this.partyService.findUserByUserCode(partyId); |
| | | if (!party.isEnabled()) { |
| | | throw new YamiShopBindException("用户已锁定"); |
| | | throw new YamiShopBindException("User is locked"); |
| | | } |
| | | if (null == object || !party.getUserId().equals((String) object)) { |
| | | throw new BusinessException("请稍后再试"); |