From 313061e30b381a80b2fc70ff97b71c262fe18625 Mon Sep 17 00:00:00 2001 From: Billy <641833868@qq.com> Date: Thu, 20 Nov 2025 18:51:28 +0800 Subject: [PATCH] up --- addons/shopro/service/Withdraw.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/addons/shopro/service/Withdraw.php b/addons/shopro/service/Withdraw.php index 799de0d..6251ad8 100755 --- a/addons/shopro/service/Withdraw.php +++ b/addons/shopro/service/Withdraw.php @@ -235,11 +235,14 @@ class Withdraw } // 检查7天限制 - if (isset($this->config['days_7']) && $this->config['days_7'] == 1) { - $daysDiff = (time() - $withdraw->createtime) / 86400; // 86400秒 = 1天 - if ($daysDiff < 7) { - $remainingDays = ceil(7 - $daysDiff); - throw new ShoproException('提现申请时间未超过7天,还需等待' . $remainingDays . '天才能放款'); + if (isset($this->config['days_7']) && intval($this->config['days_7']) == 1) { + $createtime = intval($withdraw->createtime); + if ($createtime > 0) { + $daysDiff = (time() - $createtime) / 86400; // 86400秒 = 1天 + if ($daysDiff < 7) { + $remainingDays = ceil(7 - $daysDiff); + throw new ShoproException('提现申请时间未超过7天,还需等待' . $remainingDays . '天才能放款'); + } } }