mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 15:39:10 +08:00
update: reconsitution
This commit is contained in:
parent
98bee6fa87
commit
61f1d8a623
@ -39,11 +39,11 @@ class AppController extends Controller
|
||||
'chacha20-ietf-poly1305'
|
||||
])
|
||||
) {
|
||||
array_push($proxy, \App\Http\Controllers\V1\Client\Protocols\Clash::buildShadowsocks($user['uuid'], $item));
|
||||
array_push($proxy, \App\Protocols\Clash::buildShadowsocks($user['uuid'], $item));
|
||||
array_push($proxies, $item['name']);
|
||||
}
|
||||
if ($item['type'] === 'vmess') {
|
||||
array_push($proxy, \App\Http\Controllers\V1\Client\Protocols\Clash::buildVmess($user['uuid'], $item));
|
||||
array_push($proxy, \App\Protocols\Clash::buildVmess($user['uuid'], $item));
|
||||
array_push($proxies, $item['name']);
|
||||
}
|
||||
if ($item['type'] === 'trojan') {
|
||||
|
@ -3,7 +3,7 @@
|
||||
namespace App\Http\Controllers\V1\Client;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\V1\Client\Protocols\General;
|
||||
use App\Protocols\General;
|
||||
use App\Services\ServerService;
|
||||
use App\Services\UserService;
|
||||
use App\Utils\Helper;
|
||||
@ -24,8 +24,8 @@ class ClientController extends Controller
|
||||
$servers = $serverService->getAvailableServers($user);
|
||||
$this->setSubscribeInfoToServers($servers, $user);
|
||||
if ($flag) {
|
||||
foreach (array_reverse(glob(app_path('Http//Controllers//Client//Protocols') . '/*.php')) as $file) {
|
||||
$file = 'App\\Http\\Controllers\\Client\\Protocols\\' . basename($file, '.php');
|
||||
foreach (array_reverse(glob(app_path('Protocols') . '/*.php')) as $file) {
|
||||
$file = 'App\\Protocols\\' . basename($file, '.php');
|
||||
$class = new $file($user, $servers);
|
||||
if (strpos($flag, $class->flag) !== false) {
|
||||
die($class->handle());
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use phpDocumentor\Reflection\Types\Self_;
|
||||
use Symfony\Component\Yaml\Yaml;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use App\Utils\Helper;
|
||||
use Symfony\Component\Yaml\Yaml;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
use App\Utils\Helper;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
class Loon
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
class Passwall
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
class QuantumultX
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
class SSRPlus
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
class SagerNet
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use App\Utils\Helper;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
class Shadowsocks
|
||||
{
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use App\Utils\Helper;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
use App\Utils\Helper;
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
use App\Utils\Helper;
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\V1\Client\Protocols;
|
||||
namespace App\Protocols;
|
||||
|
||||
|
||||
class V2rayNG
|
Loading…
Reference in New Issue
Block a user