This commit is contained in:
Tokumeikoi 2020-03-06 16:23:49 +08:00
parent 6b7cea671d
commit e5c207ccff

View File

@ -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