update: sort leave alert

This commit is contained in:
tokumeikoi
2021-06-08 20:07:10 +09:00
parent 0313c35dbe
commit f896370e64
5 changed files with 81 additions and 11 deletions

View File

@ -358,4 +358,17 @@ class ServerService
}
}
}
public function getAllServers()
{
$servers = array_merge(
$this->getShadowsocksServers(),
$this->getV2rayServers(),
$this->getTrojanServers()
);
$this->mergeData($servers);
$tmp = array_column($servers, 'sort');
array_multisort($tmp, SORT_ASC, $servers);
return $servers;
}
}