mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49:11 +08:00
update: server
This commit is contained in:
parent
f1fd300a35
commit
6fd7b48d6f
@ -35,7 +35,7 @@ class ServerService
|
||||
} else {
|
||||
$vmesss[$k]['last_check_at'] = Cache::get(CacheKey::get('SERVER_V2RAY_LAST_CHECK_AT', $vmesss[$k]['id']));
|
||||
}
|
||||
array_push($vmess, $vmesss[$k]);
|
||||
array_push($vmess, $vmesss[$k]->toArray());
|
||||
}
|
||||
}
|
||||
|
||||
@ -61,7 +61,7 @@ class ServerService
|
||||
} else {
|
||||
$trojans[$k]['last_check_at'] = Cache::get(CacheKey::get('SERVER_TROJAN_LAST_CHECK_AT', $trojans[$k]['id']));
|
||||
}
|
||||
array_push($trojan, $trojans[$k]);
|
||||
array_push($trojan, $trojans[$k]->toArray());
|
||||
}
|
||||
|
||||
}
|
||||
@ -86,7 +86,7 @@ class ServerService
|
||||
} else {
|
||||
$shadowsockss[$k]['last_check_at'] = Cache::get(CacheKey::get('SERVER_SHADOWSOCKS_LAST_CHECK_AT', $shadowsockss[$k]['id']));
|
||||
}
|
||||
array_push($shadowsocks, $shadowsockss[$k]);
|
||||
array_push($shadowsocks, $shadowsockss[$k]->toArray());
|
||||
}
|
||||
|
||||
}
|
||||
@ -100,6 +100,7 @@ class ServerService
|
||||
$this->getV2ray($user, $all),
|
||||
$this->getTrojan($user, $all)
|
||||
);
|
||||
info($servers);
|
||||
$tmp = array_column($servers, 'sort');
|
||||
array_multisort($tmp, SORT_ASC, $servers);
|
||||
return $servers;
|
||||
|
Loading…
Reference in New Issue
Block a user