作者 邓超

x

... ... @@ -90,7 +90,7 @@ class AutoMail {
if(in_array(strtolower($item['from']),$this->black_emails)){
if (!isset($this->filter[$item['email_id']])){
// 找到邮箱
$e = $this->db->value(listsSql::first(dbWhere(['id'=>$item['email_id']]),'email'));
$e = $this->db->value(\Model\emailSql::first($item['email_id'],'`email`'));
// 是否是ai邮件
$this->filter[$item['email_id']] =
$this->db->count("select count(*) from `hot_mail` where ".dbWhere(['email'=> $e]));
... ...
... ... @@ -2,6 +2,7 @@
namespace Event;
use Model\emailSql;
use Model\folderSql;
use Model\listsSql;
use Swlib\Saber;
... ... @@ -222,7 +223,7 @@ class syncMail {
if(!empty($data['from'])){
// 是否是ai邮件
if($this->db->count("select count(*) from `hot_mail` where ".dbWhere([
'email'=> $this->db->value(listsSql::first(dbWhere(['id'=>$data['email_id']]),'email'))
'email'=> $this->db->value(emailSql::first($data['email_id'],'`email`'))
]))){
// 是否在黑名单中
if($this->db->count("select count(*) from `ai_black_email` where ".dbWhere(['email'=>$data['from']]))){
... ...