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
55742db8
Commit
55742db8
authored
Nov 14, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
suning 短信邮箱修改
parent
c62e75b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
14 deletions
+15
-14
Galanz.php
application/controllers/test/Galanz.php
+11
-10
Suning.php
application/controllers/test/Suning.php
+1
-1
base_helper.php
application/helpers/base_helper.php
+2
-2
SourceSuning.php
application/libraries/Source/SourceSuning.php
+1
-1
No files found.
application/controllers/test/Galanz.php
View file @
55742db8
...
@@ -60,16 +60,17 @@ class Galanz extends BaseController
...
@@ -60,16 +60,17 @@ class Galanz extends BaseController
public
function
mail
()
public
function
mail
()
{
{
$code
=
phone_code
();
// $mail= '18611475060@163.com';
// $pwd = 'aimi1012';
// $mbox = imap_open("{pop.163.com:995/pop3/ssl}INBOX", "wxh__8888@163.com", "WXH888888");
//
$mail
=
'weixiuhui1688@163.com'
;
// $num = imap_num_msg($mbox);
$pwd
=
'wxh16888'
;
//
// $body = imap_base64(imap_fetchbody($mbox, imap_num_msg($mbox), 1));
// $mail = 'wxh__8888@163.com';
// //$body = iconv('utf8', 'gbk', $body);
// $pwd = 'WXH888888';
//
// imap_close($mbox);
$code
=
phone_code
(
$mail
,
$pwd
);
var_dump
(
$code
);
var_dump
(
$code
);
}
}
...
...
application/controllers/test/Suning.php
View file @
55742db8
...
@@ -129,7 +129,7 @@ class Suning extends BaseController
...
@@ -129,7 +129,7 @@ class Suning extends BaseController
'type'
=>
'1'
,
'type'
=>
'1'
,
'siteBp'
=>
'904102'
,
'siteBp'
=>
'904102'
,
'startTime'
=>
'20161106'
,
'startTime'
=>
'20161106'
,
'endTime'
=>
'201611
1
3'
,
'endTime'
=>
'201611
2
3'
,
'objectIds'
=>
''
'objectIds'
=>
''
];
];
...
...
application/helpers/base_helper.php
View file @
55742db8
...
@@ -118,9 +118,9 @@ function curl_post($url, $post)
...
@@ -118,9 +118,9 @@ function curl_post($url, $post)
}
}
function
phone_code
()
function
phone_code
(
$mail
,
$pwd
)
{
{
$mbox
=
imap_open
(
"
{
pop.163.com:995/pop3/ssl
}
INBOX"
,
"wxh__8888@163.com"
,
"WXH888888"
);
$mbox
=
imap_open
(
"
{
pop.163.com:995/pop3/ssl
}
INBOX"
,
$mail
,
$pwd
);
if
(
!
$mbox
)
{
if
(
!
$mbox
)
{
return_msg
(
false
,
'登陆邮箱失败'
);
return_msg
(
false
,
'登陆邮箱失败'
);
...
...
application/libraries/Source/SourceSuning.php
View file @
55742db8
...
@@ -525,7 +525,7 @@ class SourceSuning extends Source
...
@@ -525,7 +525,7 @@ class SourceSuning extends Source
*/
*/
public
function
GetPhoneCode
(
$num
=
0
)
public
function
GetPhoneCode
(
$num
=
0
)
{
{
$result
=
phone_code
();
$result
=
phone_code
(
'weixiuhui1688@163.com'
,
'wxh16888'
);
if
(
$num
>
20
)
{
if
(
$num
>
20
)
{
return
false
;
return
false
;
...
...
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