...
|
...
|
@@ -37,7 +37,7 @@ class HotMail { |
|
|
|
|
|
$this->shopkHotEmail = array_map('strtolower',$this->shopkHotEmail);
|
|
|
|
|
|
$this->shopkHotEmail = array_unique($this->shopkHotEmail);
|
|
|
$this->shopkHotEmail = array_flip($this->shopkHotEmail);
|
|
|
|
|
|
if($this->shopkHotEmail){
|
|
|
array_map([$this,'moveMail'],$fob);
|
...
|
...
|
@@ -131,14 +131,14 @@ class HotMail { |
|
|
$isInsert = false;
|
|
|
if($data['folder'] != 'f'){
|
|
|
// 收件箱 匹配 from 字段
|
|
|
$isInsert = in_array(strtolower($data['from']),$this->shopkHotEmail);
|
|
|
$isInsert = isset($this->shopkHotEmail[strtolower($data['from'])]);
|
|
|
}else{
|
|
|
// 发件箱 匹配 to_name字段
|
|
|
$to_name = is_array($data['to_name']) ? $data['to_name'] : @json_decode($data['to_name'],1);
|
|
|
if($to_name){
|
|
|
foreach ($to_name as $item){
|
|
|
// 找到了就退出去
|
|
|
if(in_array(strtolower($item['email']),$this->shopkHotEmail)){
|
|
|
if(isset($this->shopkHotEmail[strtolower($item['email'])])){
|
|
|
$isInsert = true;
|
|
|
$data['from'] = $item['email'];
|
|
|
break;
|
...
|
...
|
|