服务器列表顺序取消修改

This commit is contained in:
“wanyongkang”
2023-10-23 17:07:30 +08:00
parent 81ae16a428
commit c6076b2ba7

View File

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