| | |
| | | import com.yami.trading.common.util.StringUtils; |
| | | import com.yami.trading.common.util.ThreadUtils; |
| | | import com.yami.trading.security.common.util.SecurityUtils; |
| | | import com.yami.trading.service.RealNameAuthRecordService; |
| | | import com.yami.trading.service.SessionTokenService; |
| | | import com.yami.trading.service.WalletService; |
| | | import com.yami.trading.service.data.DataService; |
| | |
| | | |
| | | @Autowired |
| | | ExchangeLeverOrderService exchangeLeverOrderService; |
| | | @Autowired |
| | | RealNameAuthRecordService realNameAuthRecordService; |
| | | |
| | | /** |
| | | * 开仓页面参数 |
| | |
| | | throw new YamiShopBindException("用户已禁用"); |
| | | } |
| | | validateTradePermission(party); |
| | | realNameAuthRecordService.requireApproved(party, true); |
| | | ExchangeLeverApplyOrder order = new ExchangeLeverApplyOrder(); |
| | | order.setPartyId(SecurityUtils.getCurrentUserId()); |
| | | order.setSymbol(symbol); |
| | |
| | | // 模拟账户不做二步校验限制 |
| | | if (user.getAccountType() != null && user.getAccountType() == 1) { |
| | | return; |
| | | } |
| | | if (!user.isGoogleAuthBind() || StringUtils.isEmptyString(user.getSafePassword())) { |
| | | throw new YamiShopBindException("请先完成两步认证并设置资金密码后再交易"); |
| | | } |
| | | } |
| | | |