Commit 55742db8 authored by 蒋林's avatar 蒋林

suning 短信邮箱修改

parent c62e75b6
...@@ -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);
} }
......
...@@ -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' => '20161113', 'endTime' => '20161123',
'objectIds' => '' 'objectIds' => ''
]; ];
......
...@@ -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, '登陆邮箱失败');
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment