服务器列表顺序取消修改

This commit is contained in:
“wanyongkang”
2023-10-23 17:10:36 +08:00
parent c6076b2ba7
commit 6fa39457b0

View File

@@ -343,16 +343,15 @@ function ip_repeat(&$record, $ip, $dns = '')
function city_exist($citys, $city)
{
return $city;
// for ($i = 2; $i < 100; $i++) {
// if (in_array($city, $citys)) {
// if (in_array($city . $i, $citys)) {
// continue;
// } else {
// return $city . $i;
// }
// } else {
// return $city;
// }
// }
for ($i = 1; $i < 100; $i++) {
if (in_array($city, $citys)) {
if (in_array($city . $i, $citys)) {
continue;
} else {
return $city . $i;
}
} else {
return $city;
}
}
}