mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 09:21:46 +08:00 
			
		
		
		
	1.2.2
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user