zj
2025-02-17 76bc979b654c23be393c9c46c9e3099cdd3785ec
src/main/java/project/web/api/WithdrawController.java
@@ -133,7 +133,7 @@
      if (!"0".equals(resultObject.getCode())) {
         return resultObject;
      }
      String partyId = this.getLoginPartyId();
      boolean lock = false;
      try {
@@ -141,17 +141,17 @@
         if (!StringUtils.isNullOrEmpty(error)) {
            throw new BusinessException(error);
         }
         double amount_double = Double.valueOf(amount).doubleValue();
         // 交易所提现是否需要资金密码
         String exchange_withdraw_need_safeword = this.sysparaService.find("exchange_withdraw_need_safeword").getValue();
         if(StringUtils.isEmptyString(exchange_withdraw_need_safeword)) {
            throw new BusinessException("系统参数错误");
         }
         if ("true".equals(exchange_withdraw_need_safeword)) {
            if (StringUtils.isEmptyString(safeword)) {
               throw new BusinessException("资金密码不能为空");
            }
@@ -159,18 +159,18 @@
            if (safeword.length() < 6 || safeword.length() > 12) {
               throw new BusinessException("资金密码必须6-12位");
            }
            if (!this.partyService.checkSafeword(safeword, partyId)) {
               throw new BusinessException("资金密码错误");
            }
            }
         }
         if (!LockFilter.add(partyId)) {
            throw new BusinessException(error);
         }
         lock = true;
         Object object = this.sessionTokenService.cacheGet(session_token);
         this.sessionTokenService.del(session_token);
         if (null == object || !this.getLoginPartyId().equals((String) object)) {
@@ -183,11 +183,10 @@
         withdraw.setAddress(from);
         withdraw.setCurrency(currency);
         withdraw.setDeviceIp(this.getIp());
         // 保存
         WalletGatherService walletGatherService = new WalletGatherServiceImpl(jdbcTemplate,redisHandler,walletService);
         this.withdrawService.saveApply(withdraw, channel, null, googleCode,walletGatherService);
         this.withdrawService.saveApply(withdraw, channel, null, googleCode);
         Log log = new Log();
         Party party = this.partyService.cachePartyBy(partyId, false);
         log.setCategory(Constants.LOG_CATEGORY_SECURITY);
@@ -200,13 +199,13 @@
      } catch (BusinessException e) {
         if (105 == e.getSign()) {
            resultObject.setCode("105");
            resultObject.setCode("105");
         } else if (401 == e.getSign()) {
            resultObject.setCode("401");
            resultObject.setCode("401");
         } else if (506 == e.getSign()) {
            resultObject.setCode("506");
            resultObject.setCode("506");
         } else {
            resultObject.setCode("1");
            resultObject.setCode("1");
         }
         resultObject.setMsg(e.getMessage());
      } catch (Throwable t) {
@@ -220,7 +219,7 @@
            LockFilter.remove(partyId);
         }
      }
      return resultObject;
   }