| | |
| | | if ("true".equals(exchange_withdraw_need_safeword)) { |
| | | // 资金密码验证 |
| | | if (StringUtils.isEmptyString(safeword)) { |
| | | throw new YamiShopBindException("资金密码不能为空"); |
| | | throw new YamiShopBindException("Fund password is required"); |
| | | } |
| | | if (safeword.length() < 6 || safeword.length() > 12) { |
| | | throw new YamiShopBindException("资金密码必须6-12位"); |
| | | throw new YamiShopBindException("Fund password must be 6-12 characters"); |
| | | } |
| | | if (!userService.checkLoginSafeword(SecurityUtils.getUser().getUserId(), safeword)) { |
| | | throw new YamiShopBindException("资金密码错误"); |
| | | throw new YamiShopBindException("Incorrect fund password"); |
| | | } |
| | | } |
| | | this.sessionTokenService.del(session_token); |
| | |
| | | public Result get(@RequestParam String order_no) throws IOException { |
| | | Withdraw withdraw = this.withdrawService.findByOrderNo(order_no); |
| | | if (withdraw==null){ |
| | | throw new YamiShopBindException("订单不存在!"); |
| | | throw new YamiShopBindException("Order does not exist"); |
| | | } |
| | | Map<String, Object> map = new HashMap<String, Object>(); |
| | | map.put("order_no", withdraw.getOrderNo()); |
| | |
| | | page_no = "1"; |
| | | } |
| | | if (!StringUtils.isInteger(page_no)) { |
| | | throw new YamiShopBindException("页码不是整数"); |
| | | throw new YamiShopBindException("Page number must be an integer"); |
| | | } |
| | | if (Integer.valueOf(page_no).intValue() <= 0) { |
| | | throw new YamiShopBindException("页码不能小于等于0"); |
| | | throw new YamiShopBindException("Page number must be greater than 0"); |
| | | } |
| | | int page_no_int = Integer.valueOf(page_no).intValue(); |
| | | List<Map<String, Object>> data = this.walletLogService.pagedQueryWithdraw(page_no_int, 10, SecurityUtils.getUser().getUserId(), "1").getRecords(); |
| | |
| | | |
| | | private String verif(String amount) { |
| | | if (StringUtils.isNullOrEmpty(amount)) { |
| | | return "提币数量必填"; |
| | | return "Withdrawal amount is required"; |
| | | } |
| | | if (!StringUtils.isDouble(amount)) { |
| | | return "提币数量输入错误,请输入浮点数"; |
| | | return "Invalid withdrawal amount, please enter a number"; |
| | | } |
| | | if (Double.valueOf(amount).doubleValue() <= 0) { |
| | | return "提币数量不能小于等于0"; |
| | | return "Withdrawal amount must be greater than 0"; |
| | | } |
| | | return null; |
| | | } |