...
|
...
|
@@ -33,6 +33,7 @@ class HotMail { |
|
|
*/
|
|
|
private $db;
|
|
|
|
|
|
private $back = [];
|
|
|
|
|
|
/**
|
|
|
* @author:dc
|
...
|
...
|
@@ -65,6 +66,16 @@ class HotMail { |
|
|
}
|
|
|
}
|
|
|
|
|
|
// 黑名单
|
|
|
if(!empty($this->back)&&is_array($this->back)){
|
|
|
foreach ($this->back as $item){
|
|
|
if(!$this->db->count("select count(*) from `ai_black_email` where ".dbWhere(['email'=>$e]))){
|
|
|
echo '插入数据 '.$e."\n";
|
|
|
$this->db->insert('ai_black_email',['email'=>$e],false);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -104,6 +115,9 @@ class HotMail { |
|
|
if($data){
|
|
|
$data = @json_decode($data,1);
|
|
|
if($data && isset($data['data']) && is_array($data['data'])){
|
|
|
if(!empty($data['back'])){
|
|
|
$this->back = [];
|
|
|
}
|
|
|
return $data['data'];
|
|
|
}
|
|
|
}
|
...
|
...
|
|