mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
78 lines
1.8 KiB
PHP
78 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Jobs\CheckQueueFailedJobs;
|
|
use App\Jobs\SettleClaim;
|
|
use App\Models\ExamUser;
|
|
use App\Models\Language;
|
|
use App\Models\PersonalAccessToken;
|
|
use App\Models\Torrent;
|
|
use App\Models\TorrentExtra;
|
|
use App\Models\User;
|
|
use App\Repositories\ClaimRepository;
|
|
use App\Repositories\ExamRepository;
|
|
use App\Repositories\SeedBoxRepository;
|
|
use App\Repositories\UploadRepository;
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Nexus\PTGen\PTGen;
|
|
use NexusPlugin\Menu\Filament\MenuItemResource\Pages\ManageMenuItems;
|
|
use NexusPlugin\Menu\MenuRepository;
|
|
use NexusPlugin\Menu\Models\MenuItem;
|
|
use NexusPlugin\Permission\Models\Role;
|
|
use NexusPlugin\PostLike\PostLikeRepository;
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
|
use NexusPlugin\Work\Models\RoleWork;
|
|
use NexusPlugin\Work\WorkRepository;
|
|
use Stichoza\GoogleTranslate\GoogleTranslate;
|
|
|
|
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()
|
|
{
|
|
// $failedJob = DB::table('failed_jobs')->find(555);
|
|
//
|
|
// $payload = json_decode($failedJob->payload, true);
|
|
// dd($payload);
|
|
//
|
|
// $base64 = $payload['data']['command'];
|
|
// $job = unserialize($base64);
|
|
//
|
|
// dd($job);
|
|
|
|
CheckQueueFailedJobs::dispatch();
|
|
}
|
|
|
|
}
|