| | |
| | | int with_time_end = siteSetting.getWithTimeEnd().intValue(); |
| | | |
| | | SiteProduct siteProduct = iSiteProductService.getProductSetting(); |
| | | if(!siteProduct.getTranWithdrawDisplay()){ |
| | | return ServerResponse.createByErrorMsg("提款失败,当前不能出金!"); |
| | | } |
| | | if(siteProduct.getHolidayDisplay()){ |
| | | return ServerResponse.createByErrorMsg("周末或节假日不能出金!"); |
| | | } |
| | |
| | | |
| | | synchronized (UserWithdrawServiceImpl.class){ |
| | | //可取港币资金 |
| | | BigDecimal hkAmt=user.getHkAmt(); |
| | | BigDecimal hkAmt=user.getEnaleWithdrawAmt(); |
| | | |
| | | int compareAmt = hkAmt.compareTo(new BigDecimal(amt)); |
| | | |
| | |
| | | |
| | | BigDecimal reckon_hkAmt = hkAmt.subtract(new BigDecimal(amt)); |
| | | |
| | | user.setHkAmt(reckon_hkAmt); |
| | | user.setEnaleWithdrawAmt(reckon_hkAmt); |
| | | |
| | | log.info("提现前,港币金额={},提现后,港币金额={}",hkAmt,reckon_hkAmt); |
| | | |