2021-04-21 00:07:32 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
2025-06-09 19:16:43 +07:00
|
|
|
use App\Jobs\CheckQueueFailedJobs;
|
2025-05-04 00:00:41 +07:00
|
|
|
use App\Jobs\SettleClaim;
|
2025-06-17 20:54:18 +07:00
|
|
|
use App\Jobs\UpdateUserDownloadPrivilege;
|
2025-04-17 18:59:03 +07:00
|
|
|
use App\Models\ExamUser;
|
2025-04-20 18:13:46 +07:00
|
|
|
use App\Models\Language;
|
2025-06-22 02:02:14 +07:00
|
|
|
use App\Models\Message;
|
2025-03-29 14:32:31 +07:00
|
|
|
use App\Models\PersonalAccessToken;
|
2025-04-17 01:39:40 +07:00
|
|
|
use App\Models\Torrent;
|
2025-05-16 02:43:45 +07:00
|
|
|
use App\Models\TorrentExtra;
|
2025-04-17 01:39:40 +07:00
|
|
|
use App\Models\User;
|
2025-05-16 14:19:06 +07:00
|
|
|
use App\Repositories\ClaimRepository;
|
2025-04-17 18:59:03 +07:00
|
|
|
use App\Repositories\ExamRepository;
|
2025-09-08 03:05:55 +07:00
|
|
|
use App\Repositories\RequireSeedTorrentRepository;
|
2025-05-11 02:33:22 +07:00
|
|
|
use App\Repositories\SeedBoxRepository;
|
2025-06-22 20:43:04 +07:00
|
|
|
use App\Repositories\TokenRepository;
|
2025-04-17 01:39:40 +07:00
|
|
|
use App\Repositories\UploadRepository;
|
2021-04-21 00:07:32 +08:00
|
|
|
use Illuminate\Console\Command;
|
2025-06-09 02:29:15 +07:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2025-06-22 02:02:14 +07:00
|
|
|
use Nexus\Database\NexusDB;
|
2025-05-16 02:43:45 +07:00
|
|
|
use Nexus\PTGen\PTGen;
|
2022-08-04 00:48:42 +08:00
|
|
|
use NexusPlugin\Menu\Filament\MenuItemResource\Pages\ManageMenuItems;
|
|
|
|
|
use NexusPlugin\Menu\MenuRepository;
|
|
|
|
|
use NexusPlugin\Menu\Models\MenuItem;
|
2022-08-19 15:30:16 +08:00
|
|
|
use NexusPlugin\Permission\Models\Role;
|
2022-06-10 01:25:13 +08:00
|
|
|
use NexusPlugin\PostLike\PostLikeRepository;
|
2022-06-08 14:15:59 +08:00
|
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
2022-06-08 20:47:34 +08:00
|
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
2022-12-03 19:56:54 +08:00
|
|
|
use NexusPlugin\Work\Models\RoleWork;
|
|
|
|
|
use NexusPlugin\Work\WorkRepository;
|
2025-09-08 03:05:55 +07:00
|
|
|
use Rhilip\Bencode\Bencode;
|
|
|
|
|
use Rhilip\Bencode\TorrentFile;
|
2025-04-17 01:39:40 +07:00
|
|
|
use Stichoza\GoogleTranslate\GoogleTranslate;
|
2021-04-21 00:07:32 +08:00
|
|
|
|
|
|
|
|
class Test extends Command
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The name and signature of the console command.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $signature = 'test:test';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The console command description.
|
|
|
|
|
*
|
|
|
|
|
* @var string
|
|
|
|
|
*/
|
|
|
|
|
protected $description = 'Just for test';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Create a new command instance.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Execute the console command.
|
|
|
|
|
*
|
|
|
|
|
* @return int
|
|
|
|
|
*/
|
|
|
|
|
public function handle()
|
|
|
|
|
{
|
2025-09-08 03:05:55 +07:00
|
|
|
$rep = new RequireSeedTorrentRepository();
|
|
|
|
|
// $rep->doRemove(Torrent::query()->whereIn('id', [58])->get());
|
|
|
|
|
$rep->autoAddToListCronjob();
|
2021-04-21 00:07:32 +08:00
|
|
|
}
|
2021-04-28 19:44:48 +08:00
|
|
|
|
2021-04-21 00:07:32 +08:00
|
|
|
}
|