mirror of
https://gitee.com/liuxioabin/fengketrade.git
synced 2026-04-17 21:03:17 +08:00
up
This commit is contained in:
parent
18e52067ee
commit
313061e30b
@ -235,11 +235,14 @@ class Withdraw
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检查7天限制
|
// 检查7天限制
|
||||||
if (isset($this->config['days_7']) && $this->config['days_7'] == 1) {
|
if (isset($this->config['days_7']) && intval($this->config['days_7']) == 1) {
|
||||||
$daysDiff = (time() - $withdraw->createtime) / 86400; // 86400秒 = 1天
|
$createtime = intval($withdraw->createtime);
|
||||||
if ($daysDiff < 7) {
|
if ($createtime > 0) {
|
||||||
$remainingDays = ceil(7 - $daysDiff);
|
$daysDiff = (time() - $createtime) / 86400; // 86400秒 = 1天
|
||||||
throw new ShoproException('提现申请时间未超过7天,还需等待' . $remainingDays . '天才能放款');
|
if ($daysDiff < 7) {
|
||||||
|
$remainingDays = ceil(7 - $daysDiff);
|
||||||
|
throw new ShoproException('提现申请时间未超过7天,还需等待' . $remainingDays . '天才能放款');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user