作者 邓超

x

@@ -33,8 +33,12 @@ class HotMail { @@ -33,8 +33,12 @@ class HotMail {
33 $fob = $this->getFobHotEmail(); 33 $fob = $this->getFobHotEmail();
34 34
35 // 把黑格自己的也算进去 35 // 把黑格自己的也算进去
36 - $this->shopkHotEmail = array_merge($this->getHotEmail(),$fob); 36 + $this->shopkHotEmail = array_merge($this->getHotEmail('e'),$this->getHotEmail('w'),$fob);
  37 +
37 $this->shopkHotEmail = array_map('strtolower',$this->shopkHotEmail); 38 $this->shopkHotEmail = array_map('strtolower',$this->shopkHotEmail);
  39 +
  40 + $this->shopkHotEmail = array_unique($this->shopkHotEmail);
  41 +
38 if($this->shopkHotEmail){ 42 if($this->shopkHotEmail){
39 array_map([$this,'moveMail'],$fob); 43 array_map([$this,'moveMail'],$fob);
40 } 44 }
@@ -164,8 +168,10 @@ class HotMail { @@ -164,8 +168,10 @@ class HotMail {
164 * @author:dc 168 * @author:dc
165 * @time 2024/7/18 13:58 169 * @time 2024/7/18 13:58
166 */ 170 */
167 - private function getHotEmail():array {  
168 - $data = @file_get_contents('https://oa.shopk.com/api/mail/preheat'); 171 + private function getHotEmail($t='e'):array {
  172 + $url['e'] = 'https://oa.shopk.com/api/mail/preheat';
  173 + $url['w'] = 'https://oa.shopk.com/api/mail/write?iswrite=1';
  174 + $data = @file_get_contents($url[$t]);
169 175
170 if($data){ 176 if($data){
171 $data = @json_decode($data,1); 177 $data = @json_decode($data,1);