mirror of
https://github.com/v2board/v2board.git
synced 2025-06-12 20:47:56 +08:00
rm: remove server name check
This commit is contained in:
@ -357,18 +357,4 @@ class ServerService
|
||||
}
|
||||
return $server->toArray();
|
||||
}
|
||||
|
||||
public function serverIsExist($name):bool
|
||||
{
|
||||
if (ServerShadowsocks::where('name', $name)->count() > 0) {
|
||||
return true;
|
||||
}
|
||||
if (ServerTrojan::where('name', $name)->count() > 0) {
|
||||
return true;
|
||||
}
|
||||
if (Server::where('name', $name)->count() > 0) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user