Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
27f83f2b
Commit
27f83f2b
authored
Jan 16, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
苏宁-验证码规则
parent
b220f25b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
base_helper.php
application/helpers/base_helper.php
+1
-1
No files found.
application/helpers/base_helper.php
View file @
27f83f2b
...
...
@@ -183,7 +183,7 @@ function phone_code($mail, $pwd)
if
(
$num
)
{
$body
=
imap_base64
(
imap_fetchbody
(
$mbox
,
imap_num_msg
(
$mbox
),
1
));
preg_match
(
'/验证码[^\d]+(\d
{6}
)/'
,
$body
,
$code
);
preg_match
(
'/验证码[^\d]+(\d
+
)/'
,
$body
,
$code
);
preg_match
(
'/2\d{3}-[\s\S]{14}/'
,
$body
,
$date
);
if
(
isset
(
$code
[
1
])
&&
isset
(
$date
[
0
]))
{
...
...
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