bug修改,4.7.3提交审核
This commit is contained in:
parent
d6b201c341
commit
82590f8fba
|
|
@ -70,7 +70,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>6</string>
|
||||
<string>9</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
|
|
|||
|
|
@ -660,9 +660,14 @@
|
|||
//判断是否包含特殊字符串 即非数字字母下划线
|
||||
+(BOOL)isIncludeSpecialCharact:(NSString *)str {
|
||||
|
||||
NSString *regex =@"(^[a-zA-Z0-9_\u4e00-\u9fa5]+$)";
|
||||
NSPredicate * pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
|
||||
BOOL isRight = [pred evaluateWithObject:str];
|
||||
// NSString *regex =@"(^[a-zA-Z0-9_\u4e00-\u9fa5]+$)";
|
||||
// NSPredicate * pred = [NSPredicate predicateWithFormat:@"SELF MATCHES %@", regex];
|
||||
// BOOL isRight = [pred evaluateWithObject:str];
|
||||
|
||||
BOOL isRight=YES;//仅有“‘不可以
|
||||
if ([str containsString:@"’"]||[str containsString:@"”"]||[str containsString:@"'"]||[str containsString:@"\""]) {
|
||||
isRight=NO;
|
||||
}
|
||||
return isRight;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ Strong UIButton *nextBtn;
|
|||
BOOL isRight =[dataContorl isIncludeSpecialCharact:self.wifiPwdTextField.text];
|
||||
|
||||
if (!isRight) {
|
||||
[self.view makeToast:@"路由器密码不能包含特殊字符,只能为数字、字母或下划线"];
|
||||
[self.view makeToast:@"您输入的密码带特殊符号,请更改路由器密码。"];
|
||||
return;
|
||||
}
|
||||
[self.wifiPwdTextField resignFirstResponder];
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "GCDAsyncUdpSocket.h"
|
||||
#import "dataContorl.h"
|
||||
#define ALERT_TAG_SET_FAILED 0
|
||||
#define ALERT_TAG_SET_SUCCESS 1
|
||||
#define ALERT_TAG_B_SURE 2
|
||||
|
|
@ -15,6 +16,7 @@
|
|||
#import "MMProgressHUD.h"
|
||||
#import "MMProgressHUDOverlayView.h"
|
||||
#import "ConAquarNowWiFiPwdVC.h"
|
||||
|
||||
enum
|
||||
{
|
||||
conectType_Intelligent,
|
||||
|
|
|
|||
|
|
@ -198,8 +198,10 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
CGFloat wifiFileH=wifiFileW*percentHbiW;
|
||||
|
||||
self.wifiSecFiled=[[UITextField alloc] initWithFrame:CGRectMake(10,CGRectGetMaxY(self.wifilabel.frame) + 10, wifiFileW, wifiFileH)];
|
||||
|
||||
self.wifiSecFiled.placeholder = @"请输入WiFi密码";
|
||||
self.wifiSecFiled.delegate=self;
|
||||
self.wifiSecFiled.keyboardType=UIKeyboardTypeAlphabet;
|
||||
self.wifiSecFiled.layer.masksToBounds=YES;
|
||||
self.wifiSecFiled.layer.cornerRadius=5;
|
||||
if (@available(iOS 13.0, *)){//iOS13之后,设置颜色的方便变更
|
||||
|
|
@ -258,7 +260,7 @@ typedef NS_ENUM(NSInteger,lodingViewdissMissStyle) {
|
|||
self.attentionLabel.font=[UIFont systemFontOfSize:13];
|
||||
self.attentionLabel.textColor=[UIColor blackColor];
|
||||
self.attentionLabel.numberOfLines=0;
|
||||
self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像头。\n2、若Wifi名称有中文,请改成英文字母加数字。\n3、Wifi密码不能包含特殊符号(如,.’“!@等)。\n4、若多次智能连接未成功,请尝试热点模式连接。";
|
||||
self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像头。\n2、若Wifi名称有中文,请改成英文字母加数字。\n3、Wifi密码不能包含特殊符号(如‘“等)。\n4、若多次智能连接未成功,请尝试热点模式连接。";
|
||||
[self.view addSubview:self.waveProgressView];
|
||||
[self.view bringSubviewToFront:self.waveProgressView];
|
||||
[self.view addSubview:self.attentionLabel];
|
||||
|
|
@ -317,6 +319,12 @@ self.attentionLabel.text=@"1、请长按摄像头背后复位孔,复位摄像
|
|||
[alert show];
|
||||
return;
|
||||
}
|
||||
BOOL isRight =[dataContorl isIncludeSpecialCharact:self.wifiSecFiled.text];
|
||||
|
||||
if (!isRight) {
|
||||
[self.view makeToast:@"您输入的密码带特殊符号,请更改路由器密码。"];
|
||||
return;
|
||||
}
|
||||
UIAlertView *alert= [[UIAlertView alloc] initWithTitle:@"提示" message:@"即将使用声波连接,请调大手机音量,并靠近设备,确认设备已经重置(按复位小孔,听到“等待连接“或者“滴”)后再点击确认" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"确认", nil];
|
||||
alert.tag = ALERT_TAG_B_SURE;
|
||||
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ Copy NSString *wifiName;//当前wifi名称
|
|||
BOOL isRight =[dataContorl isIncludeSpecialCharact:self.pwdTf.text];
|
||||
|
||||
if (!isRight) {
|
||||
[self.view makeToast:@"路由器密码不能包含特殊字符,只能为数字字母下划线"];
|
||||
[self.view makeToast:@"您输入的密码带特殊符号,请更改路由器密码。"];
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -402,13 +402,13 @@ extern BOOL isfromCameraView;
|
|||
[alert show];
|
||||
return;
|
||||
}
|
||||
// BOOL isRight =[dataContorl isIncludeSpecialCharact:_wifiTextFiled.text];
|
||||
//
|
||||
// if (!isRight) {
|
||||
// [self.view makeToast:@"Wifi密码不能包含特殊字符,只能为数字字母下划线"];
|
||||
//
|
||||
// return;
|
||||
// }
|
||||
BOOL isRight =[dataContorl isIncludeSpecialCharact:_wifiTextFiled.text];
|
||||
|
||||
if (!isRight) {
|
||||
[self.view makeToast:@"您输入的密码带特殊符号,请更改路由器密码。"];
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
[self savePassw];
|
||||
[self tapConfirmForResults];
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
<constraint firstAttribute="height" constant="43" id="zNS-Ou-3gj"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="17"/>
|
||||
<textInputTraits key="textInputTraits"/>
|
||||
<textInputTraits key="textInputTraits" keyboardType="alphabet"/>
|
||||
</textField>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="如果连接有问题,请尝试热点连接模式" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dwN-It-iak">
|
||||
<rect key="frame" x="16" y="120.5" width="208.5" height="14.5"/>
|
||||
|
|
@ -97,7 +97,7 @@
|
|||
<autoresizingMask key="autoresizingMask"/>
|
||||
<string key="text">1、请将插排通电,长按复位键或开关绑定键(指示灯开始闪烁为复位成功)。
|
||||
2、若Wifi名称有中文,请改成英文字母加数字。
|
||||
3、Wifi密码不能包含特殊符号(如,.!‘”@等)。
|
||||
3、Wifi密码不能包含特殊符号(如’”等)。
|
||||
4、若多次智能连接未成功,请尝试热点模式连接。</string>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<nil key="textColor"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue