mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
1.2.2
This commit is contained in:
parent
6b7cea671d
commit
e5c207ccff
@ -54,11 +54,12 @@ class ResetTraffic extends Command
|
||||
|
||||
private function resetByMonthFirstDay($user):void
|
||||
{
|
||||
if ((string)date('d') !== '1') return
|
||||
$user->update([
|
||||
'u' => 0,
|
||||
'd' => 0
|
||||
]);
|
||||
if ((string)date('d') === '01') {
|
||||
$user->update([
|
||||
'u' => 0,
|
||||
'd' => 0
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
private function resetByExpireDay($user):void
|
||||
|
Loading…
Reference in New Issue
Block a user