update: fix reset package not exist

This commit is contained in:
tokumeikoi 2022-11-26 18:58:24 +08:00
parent 2930f1957c
commit e86ac44b2a
2 changed files with 5 additions and 1 deletions

View File

@ -100,6 +100,10 @@ class ServerService
);
$tmp = array_column($servers, 'sort');
array_multisort($tmp, SORT_ASC, $servers);
$servers = array_map(function ($server) {
$server['port'] = (int)$server['port'];
return $server;
}, $servers);
return $servers;
}

File diff suppressed because one or more lines are too long