mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-11 10:50:51 +08:00
93 lines
2.1 KiB
PHP
93 lines
2.1 KiB
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use App\Events\TorrentUpdated;
|
|
use App\Http\Resources\TagResource;
|
|
use App\Models\Attendance;
|
|
use App\Models\Exam;
|
|
use App\Models\ExamProgress;
|
|
use App\Models\ExamUser;
|
|
use App\Models\HitAndRun;
|
|
use App\Models\Medal;
|
|
use App\Models\Peer;
|
|
use App\Models\SearchBox;
|
|
use App\Models\Snatch;
|
|
use App\Models\Tag;
|
|
use App\Models\Torrent;
|
|
use App\Models\TorrentOperationLog;
|
|
use App\Models\User;
|
|
use App\Repositories\AgentAllowRepository;
|
|
use App\Repositories\AttendanceRepository;
|
|
use App\Repositories\ExamRepository;
|
|
use App\Repositories\HitAndRunRepository;
|
|
use App\Repositories\SearchBoxRepository;
|
|
use App\Repositories\SearchRepository;
|
|
use App\Repositories\TagRepository;
|
|
use App\Repositories\ToolRepository;
|
|
use App\Repositories\TorrentRepository;
|
|
use App\Repositories\UserRepository;
|
|
use Carbon\Carbon;
|
|
use GeoIp2\Database\Reader;
|
|
use Illuminate\Console\Command;
|
|
use Illuminate\Encryption\Encrypter;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Facades\Hash;
|
|
use Illuminate\Support\Facades\Redis;
|
|
use Illuminate\Support\Facades\Storage;
|
|
use JeroenG\Explorer\Domain\Syntax\Matching;
|
|
use JeroenG\Explorer\Infrastructure\Scout\ElasticEngine;
|
|
use League\Flysystem\StorageAttributes;
|
|
use Nexus\Database\NexusDB;
|
|
use Nexus\Imdb\Imdb;
|
|
use NexusPlugin\PostLike\PostLikeRepository;
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
|
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
|
use Rhilip\Bencode\Bencode;
|
|
|
|
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()
|
|
{
|
|
$a = 2;
|
|
$b = 2;
|
|
if ($a != 1 && $b == 2) {
|
|
echo "OK";
|
|
} else {
|
|
echo 'Bad';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|