Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
base_platform_enterprise
gic-data-cloud
Commits
2e7eafd0
Commit
2e7eafd0
authored
Jul 21, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年6月最新大陆手机号娇艳规则
parent
78fd2d0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
UserApiServiceImpl.java
.../com/gic/cloud/service/outer/impl/UserApiServiceImpl.java
+1
-1
No files found.
gic-data-cloud-service/src/main/java/com/gic/cloud/service/outer/impl/UserApiServiceImpl.java
View file @
2e7eafd0
...
...
@@ -140,7 +140,7 @@ public class UserApiServiceImpl implements UserApiService{
}
private
static
boolean
isPhone
(
String
phone
)
{
String
regex
=
"^((13[0-9])|(14[
5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-
9]))\\d{8}$"
;
String
regex
=
"^((13[0-9])|(14[
0|5|6|7|9])|(15[0-3])|(15[5-9])|(16[6|7])|(17[2|3|5|6|7|8])|(18[0-9])|(19[1|8|
9]))\\d{8}$"
;
if
(
StringUtils
.
isBlank
(
phone
)
||
phone
.
length
()
!=
11
)
{
return
false
;
}
else
{
...
...
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