mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -1,49 +0,0 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Console\Commands; | ||||
|  | ||||
| use Illuminate\Console\Command; | ||||
| use App\Models\User; | ||||
| use App\Utils\Helper; | ||||
|  | ||||
| class ImportReset extends Command | ||||
| { | ||||
|     /** | ||||
|      * The name and signature of the console command. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     protected $signature = 'import:reset'; | ||||
|  | ||||
|     /** | ||||
|      * The console command description. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     protected $description = '为导入用户重置所有uuid及token'; | ||||
|  | ||||
|     /** | ||||
|      * Create a new command instance. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function __construct() | ||||
|     { | ||||
|         parent::__construct(); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Execute the console command. | ||||
|      * | ||||
|      * @return mixed | ||||
|      */ | ||||
|     public function handle() | ||||
|     { | ||||
|         $user = User::all(); | ||||
|         foreach ($user as $item) { | ||||
|             $item->v2ray_uuid = Helper::guid(true); | ||||
|             $item->token = Helper::guid(); | ||||
|             $item->save(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -54,7 +54,8 @@ class SendRemindMail extends Command | ||||
|                 'subject' => '在' . config('v2board.app_name', 'V2board') . '的服务即将到期', | ||||
|                 'template_name' => 'mail.sendRemindExpire', | ||||
|                 'template_value' => [ | ||||
|                     'name' => config('v2board.app_name', 'V2Board') | ||||
|                     'name' => config('v2board.app_name', 'V2Board'), | ||||
|                     'url' => config('v2board.app_url') | ||||
|                 ] | ||||
|             ]); | ||||
|         } | ||||
| @@ -71,7 +72,8 @@ class SendRemindMail extends Command | ||||
|                 'subject' => '在' . config('v2board.app_name', 'V2board') . '的流量使用已达到80%', | ||||
|                 'template_name' => 'mail.sendRemindTraffic', | ||||
|                 'template_value' => [ | ||||
|                     'name' => config('v2board.app_name', 'V2Board') | ||||
|                     'name' => config('v2board.app_name', 'V2Board'), | ||||
|                     'url' => config('v2board.app_url') | ||||
|                 ] | ||||
|             ]); | ||||
|         } | ||||
|   | ||||
| @@ -10,21 +10,21 @@ use App\Models\ServerLog; | ||||
| use App\Utils\Helper; | ||||
| use Illuminate\Support\Facades\Redis; | ||||
| 
 | ||||
| class SystemCache extends Command | ||||
| class V2boardCache extends Command | ||||
| { | ||||
|     /** | ||||
|      * The name and signature of the console command. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     protected $signature = 'system:cache'; | ||||
|     protected $signature = 'v2board:cache'; | ||||
| 
 | ||||
|     /** | ||||
|      * The console command description. | ||||
|      * | ||||
|      * @var string | ||||
|      */ | ||||
|     protected $description = '系统缓存任务'; | ||||
|     protected $description = '缓存任务'; | ||||
| 
 | ||||
|     /** | ||||
|      * Create a new command instance. | ||||
		Reference in New Issue
	
	Block a user