MailBlack.php 764 字节
<?php

namespace Event;

use Model\emailSql;
use Model\folderSql;
use Model\listsSql;
use Swlib\Saber;
use Swlib\SaberGM;

/**
 * 黑名单
 * @author:dc
 * @time 2024/9/30 17:16
 * Class MailBlack
 * @package Event
 */
class MailBlack {

    /**
     * @var \Lib\Db|\Lib\DbPool
     */
    private $db;

    private $blacklist = [];

    private $blackFolder = '';

    private $data;


    public function __construct($id,$data)
    {
        $data['id'] = $id;

        $this->data = $data;

// 读取黑名单
        $this->blacklist = redis()->get('blacklist:'.$data['email_id']);
        if($this->blacklist){
            $this->blackFolder = $this->db->cache(3600)->value(folderSql::originFolder($data['email_id'],'垃圾箱'));
        }






    }


}