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

suning 短信邮箱修改

parent c62e75b6
......@@ -60,16 +60,17 @@ class Galanz extends BaseController
public function mail()
{
$code = phone_code();
// $mbox = imap_open("{pop.163.com:995/pop3/ssl}INBOX", "wxh__8888@163.com", "WXH888888");
//
// $num = imap_num_msg($mbox);
//
// $body = imap_base64(imap_fetchbody($mbox, imap_num_msg($mbox), 1));
// //$body = iconv('utf8', 'gbk', $body);
//
// imap_close($mbox);
// $mail= '18611475060@163.com';
// $pwd = 'aimi1012';
$mail= 'weixiuhui1688@163.com';
$pwd = 'wxh16888';
// $mail = 'wxh__8888@163.com';
// $pwd = 'WXH888888';
$code = phone_code($mail, $pwd);
var_dump($code);
}
......
......@@ -129,7 +129,7 @@ class Suning extends BaseController
'type' => '1',
'siteBp' => '904102',
'startTime' => '20161106',
'endTime' => '20161113',
'endTime' => '20161123',
'objectIds' => ''
];
......
......@@ -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) {
return_msg(false, '登陆邮箱失败');
......
......@@ -525,7 +525,7 @@ class SourceSuning extends Source
*/
public function GetPhoneCode($num = 0)
{
$result = phone_code();
$result = phone_code('weixiuhui1688@163.com', 'wxh16888');
if ($num > 20) {
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