@@ -531,7 +531,7 @@ class Info {
public static function generateWebName(string $countryId, int $length = 9) {
// 名字前缀取国家简码
$country = Countries::getById($countryId);
- $prefix = $country ? $country['CODE'] :'NG';
+ $prefix = $country['CODE'] ?: 'NG';
$result = Tool::randomString($length, $prefix).array_rand([0,1,2,3,5,6,7,8,9],1);
if (substr($result ,-1) == '4'){