作者 邓超

x

@@ -85,7 +85,7 @@ function start(){ @@ -85,7 +85,7 @@ function start(){
85 // _echo($e->getMessage()); 85 // _echo($e->getMessage());
86 logs( 86 logs(
87 $e->getMessage().PHP_EOL.$e->getTraceAsString(), 87 $e->getMessage().PHP_EOL.$e->getTraceAsString(),
88 - LOG_PATH.'/'.$id['lists_id'].'.log' 88 + LOG_PATH.'/'.$id['email_id'].'.log'
89 ); 89 );
90 } 90 }
91 91
@@ -994,7 +994,7 @@ class Imap { @@ -994,7 +994,7 @@ class Imap {
994 if(!is_resource($this->socket)){ 994 if(!is_resource($this->socket)){
995 $this->timeout = $timeout ? : 30; 995 $this->timeout = $timeout ? : 30;
996 // 链接服务器 996 // 链接服务器
997 - $this->socket = stream_socket_client($this->host, $errno, $error, $this->timeout); 997 + $this->socket = @stream_socket_client($this->host, $errno, $error, $this->timeout);
998 998
999 if($error){ 999 if($error){
1000 throw new \Exception("socket error: {$error}"); 1000 throw new \Exception("socket error: {$error}");