From ab4f5aafb0d7b6d77a3108a6fb7084219c56a1cf Mon Sep 17 00:00:00 2001
From: peter <14100000001@qq.com>
Date: Sun, 11 Jan 2026 04:14:56 +0800
Subject: [PATCH] 签章

---
 src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java b/src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java
index 38a5d61..7b33ddf 100644
--- a/src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java
+++ b/src/main/java/com/nq/service/impl/UserWithdrawServiceImpl.java
@@ -131,7 +131,7 @@
 
 
             SiteSetting siteSetting = this.iSiteSettingService.getSiteSetting();
-
+            SiteProduct siteProduct = iSiteProductService.getProductSetting();
             if ((new BigDecimal(amt)).compareTo(new BigDecimal(siteSetting.getWithMinAmt().intValue())) == -1) {
 
                 return ServerResponse.createByErrorMsg("出金金额不得低于" + siteSetting.getWithMinAmt() + "元");
@@ -143,10 +143,10 @@
             Calendar c = Calendar.getInstance();
             c.setTime(today);
             int weekday = c.get(Calendar.DAY_OF_WEEK);
-            if (weekday == 1) {
+            if (weekday == 1 && siteProduct.getTranWithdrawDisplay()) {
                 return ServerResponse.createByErrorMsg("周末或节假日不能出金!");
             }
-            if (weekday == 7) {
+            if (weekday == 7 && siteProduct.getTranWithdrawDisplay()) {
                 return ServerResponse.createByErrorMsg("周末或节假日不能出金!");
             }
 
@@ -155,12 +155,15 @@
 
             int with_time_end = siteSetting.getWithTimeEnd().intValue();
 
-            SiteProduct siteProduct = iSiteProductService.getProductSetting();
-            if(siteProduct.getHolidayDisplay()){
+//            if(!siteProduct.getTranWithdrawDisplay()){
+//                return ServerResponse.createByErrorMsg("提款失败,当前不能出金!");
+//            }
+
+            if(siteProduct.getHolidayDisplay() && siteProduct.getTranWithdrawDisplay()){
                 return ServerResponse.createByErrorMsg("周末或节假日不能出金!");
             }
 
-            if (!WithDrawUtils.checkIsWithTime(with_time_begin, with_time_end)) {
+            if (!WithDrawUtils.checkIsWithTime(with_time_begin, with_time_end) && siteProduct.getTranWithdrawDisplay()) {
 
                 return ServerResponse.createByErrorMsg("提款失败,提款时间" + with_time_begin + "点 - " + with_time_end + "点 之间");
 
@@ -169,7 +172,7 @@
 
             synchronized (UserWithdrawServiceImpl.class){
             //可取港币资金
-            BigDecimal hkAmt=user.getHkAmt();
+            BigDecimal hkAmt=user.getEnaleWithdrawAmt();
 
             int compareAmt = hkAmt.compareTo(new BigDecimal(amt));
 
@@ -181,7 +184,7 @@
 
             BigDecimal reckon_hkAmt = hkAmt.subtract(new BigDecimal(amt));
 
-            user.setHkAmt(reckon_hkAmt);
+            user.setEnaleWithdrawAmt(reckon_hkAmt);
 
             log.info("提现前,港币金额={},提现后,港币金额={}",hkAmt,reckon_hkAmt);
 

--
Gitblit v1.9.3