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
dbf73f3a38
commit
6b7cea671d
@ -52,15 +52,16 @@ class ResetTraffic extends Command
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function resetByMonthFirstDay(User $user):void
|
private function resetByMonthFirstDay($user):void
|
||||||
{
|
{
|
||||||
|
if ((string)date('d') !== '1') return
|
||||||
$user->update([
|
$user->update([
|
||||||
'u' => 0,
|
'u' => 0,
|
||||||
'd' => 0
|
'd' => 0
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function resetByExpireDay(User $user):void
|
private function resetByExpireDay($user):void
|
||||||
{
|
{
|
||||||
$date = date('Y-m-d', time());
|
$date = date('Y-m-d', time());
|
||||||
$startAt = strtotime((string)$date);
|
$startAt = strtotime((string)$date);
|
||||||
|
2
public/assets/admin/umi.js
vendored
2
public/assets/admin/umi.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user