This commit is contained in:
祝发冬
2024-01-02 19:11:35 +08:00
parent fa0dafa61b
commit ff61c9863e
2 changed files with 7 additions and 7 deletions
@@ -524,10 +524,10 @@ extern BOOL isfromCameraView;
}
[_wifiTextFiled resignFirstResponder];
NSString *ssidName = @"";
if (_ssid.length>2) {
ssidName= [_ssid substringWithRange:NSMakeRange(_ssid.length-2, 2)];
if (_ssid.length>3) {
ssidName= [_ssid substringWithRange:NSMakeRange(_ssid.length-3, 3)];
}
if ([ssidName.uppercaseString isEqualToString:@"5G"]) {
if ([ssidName.uppercaseString isEqualToString:@"-5G"]) {
UIAlertView *alert= [[UIAlertView alloc] initWithTitle:@"" message:@"仅支持2.4G WI-Fi网络,请重新选择" delegate:nil cancelButtonTitle:@"去更改" otherButtonTitles:nil, nil];
[alert show];
return;