mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update: reset server log period
This commit is contained in:
		| @@ -3,6 +3,7 @@ | ||||
| namespace App\Console\Commands; | ||||
|  | ||||
| use App\Models\Plan; | ||||
| use App\Models\StatServer; | ||||
| use App\Models\StatUser; | ||||
| use App\Utils\Helper; | ||||
| use Illuminate\Console\Command; | ||||
| @@ -43,7 +44,7 @@ class ResetLog extends Command | ||||
|      */ | ||||
|     public function handle() | ||||
|     { | ||||
|         StatUser::where('record_at', '<', strtotime('-2 month', time())) | ||||
|             ->delete(); | ||||
|         StatUser::where('record_at', '<', strtotime('-2 month', time()))->delete(); | ||||
|         StatServer::where('record_at', '<', strtotime('-2 month', time()))->delete(); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user