新号段的正则修改
This commit is contained in:
@@ -307,7 +307,7 @@
|
||||
dispatch_source_cancel(_timer1);
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
//设置界面的按钮显示 根据自己需求设置
|
||||
[timeBtn setTitle:@"语音验证码" forState:UIControlStateNormal];
|
||||
// [timeBtn setTitle:@"语音验证码" forState:UIControlStateNormal];
|
||||
timeBtn.userInteractionEnabled = YES;
|
||||
//timeBtn.backgroundColor=COLOR_LABEL_TITLE;
|
||||
[timeBtn setBackgroundImage:[UIImage imageNamed:@"registered_icon_validation"] forState:UIControlStateNormal];
|
||||
|
||||
@@ -427,32 +427,32 @@
|
||||
+ (BOOL)valiMobile:(NSString *)mobile
|
||||
|
||||
{
|
||||
|
||||
NSString * MOBILE = @"^[1][3-8]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$";
|
||||
NSPredicate*regextestmobile=[NSPredicate predicateWithFormat:@"SELF MATCHES %@",MOBILE];
|
||||
BOOL isMacth=[regextestmobile evaluateWithObject:mobile];
|
||||
/* 正则表达式:^[1][3-8]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$
|
||||
|
||||
规则说明:
|
||||
|
||||
中国大陆:开头1 3-8号段,后边跟9位数字
|
||||
|
||||
台湾:09开头后面跟8位数字
|
||||
|
||||
香港:9或6开头后面跟7位数字
|
||||
|
||||
澳门:66或68开头后面跟5位数字
|
||||
|
||||
注意:以上表达式只验证港澳台及大陆手机号码,不包含座机小灵通及区号等验证
|
||||
|
||||
*/
|
||||
if (isMacth) {
|
||||
|
||||
return YES;
|
||||
}else{
|
||||
|
||||
return NO;
|
||||
}
|
||||
return YES;
|
||||
// NSString * MOBILE = @"^[1][3-8]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$";
|
||||
// NSPredicate*regextestmobile=[NSPredicate predicateWithFormat:@"SELF MATCHES %@",MOBILE];
|
||||
// BOOL isMacth=[regextestmobile evaluateWithObject:mobile];
|
||||
// /* 正则表达式:^[1][3-8]\\d{9}$|^([6|9])\\d{7}$|^[0][9]\\d{8}$|^[6]([8|6])\\d{5}$
|
||||
//
|
||||
// 规则说明:
|
||||
//
|
||||
// 中国大陆:开头1 3-8号段,后边跟9位数字
|
||||
//
|
||||
// 台湾:09开头后面跟8位数字
|
||||
//
|
||||
// 香港:9或6开头后面跟7位数字
|
||||
//
|
||||
// 澳门:66或68开头后面跟5位数字
|
||||
//
|
||||
// 注意:以上表达式只验证港澳台及大陆手机号码,不包含座机小灵通及区号等验证
|
||||
//
|
||||
// */
|
||||
// if (isMacth) {
|
||||
//
|
||||
// return YES;
|
||||
// }else{
|
||||
//
|
||||
// return NO;
|
||||
// }
|
||||
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@
|
||||
// CFShow((__bridge CFTypeRef)(infoDic));
|
||||
NSString *app_Version=[infoDic objectForKey:@"CFBundleShortVersionString"];
|
||||
NSLog(@"app_Version%@",app_Version);
|
||||
app_Version=@"4.7.14";
|
||||
app_Version=@"4.7.15";
|
||||
NSString *versionStr = [NSString stringWithFormat:@"v%@",app_Version];
|
||||
NSString *buildVersion = [infoDic objectForKey:@"CFBundleVersion"];
|
||||
if (buildVersion.length > 0) {
|
||||
|
||||
@@ -217,7 +217,7 @@ extern BOOL formLogIn;
|
||||
|
||||
|
||||
|
||||
#pragma mark-- 获取验证(阿里)
|
||||
#pragma mark-- 获取验证(阿里)使用中
|
||||
-(void)timeFire{
|
||||
|
||||
[IFISHHTTPTOOL getVerifyCodeWithTimerButton:_timeBtn addPhoneNumber:self.phoneNumberTextField.text addSendType:@"1" backData:^(NSString *verifycode) {
|
||||
@@ -228,7 +228,7 @@ extern BOOL formLogIn;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - 获取验证码新(SMS)
|
||||
#pragma mark - 获取验证码(SMS)
|
||||
|
||||
-(void)getVerifycode{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user