Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VirtualCard-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
APP
VirtualCard-iOS
Commits
57e9a2ab
Commit
57e9a2ab
authored
Jul 15, 2019
by
石光辉
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉重复的身份验证匹配
parent
44c8e0f2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
16 deletions
+2
-16
ShoppingAddressVC.m
...QGClasses/Mall/Function/3C/Controller/ShoppingAddressVC.m
+1
-1
NSString+CreditWallet.h
...VirtualPayment/QGUtils/QGCategory/NSString+CreditWallet.h
+1
-8
NSString+CreditWallet.m
...VirtualPayment/QGUtils/QGCategory/NSString+CreditWallet.m
+0
-7
No files found.
VirtualPayment/VirtualPayment/QGClasses/Mall/Function/3C/Controller/ShoppingAddressVC.m
View file @
57e9a2ab
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
// return;
// return;
// }
// }
if
(
!
[
self
.
userInputContactInfoModel
.
idNo
isI
DCards
])
{
if
(
!
[
self
.
userInputContactInfoModel
.
idNo
isI
dentityCard
])
{
[
QGHUDManager
showHud
:
@"输入的身份证不合规范"
];
[
QGHUDManager
showHud
:
@"输入的身份证不合规范"
];
return
;
return
;
}
}
...
...
VirtualPayment/VirtualPayment/QGUtils/QGCategory/NSString+CreditWallet.h
View file @
57e9a2ab
...
@@ -185,14 +185,7 @@
...
@@ -185,14 +185,7 @@
-
(
BOOL
)
isOnlyContainsNumberAndLetter
;
-
(
BOOL
)
isOnlyContainsNumberAndLetter
;
/**
是否是身份证
判断类别:15位身份证 或者18位身份证 或者 17位+x
只判断了位数和最后一位
@return YES | NO
*/
-
(
BOOL
)
isIDCards
;
@end
@end
VirtualPayment/VirtualPayment/QGUtils/QGCategory/NSString+CreditWallet.m
View file @
57e9a2ab
...
@@ -415,12 +415,5 @@
...
@@ -415,12 +415,5 @@
return
[
pred
evaluateWithObject
:
self
];
return
[
pred
evaluateWithObject
:
self
];
}
}
-
(
BOOL
)
isIDCards
{
NSString
*
regex
=
@"(^
\\
d{15}$)|(^
\\
d{17}(
\\
d|X|x)$)"
;
NSPredicate
*
pred
=
[
NSPredicate
predicateWithFormat
:
@"SELF MATCHES %@"
,
regex
];
return
[
pred
evaluateWithObject
:
self
];
}
@end
@end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment