作者 邓超

x

... ... @@ -86,7 +86,12 @@ class HotMail {
$w = ['email' =>$item['from']];
}
// 是否在 预热邮箱中
if($this->db->cache(300)->count('select count(*) from `hot_mail` where '.dbWhere($w))){
$mkey = md5(dbWhere($w));
if(!isset($this->hotEmail[$mkey])){
$this->hotEmail[$mkey] = $this->db->count('select count(*) from `hot_mail` where '.dbWhere($w));
}
if(!$this->hotEmail[$mkey]){
$ret = $this->db->update(listsSql::$table,['is_hots'=>1],dbWhere(['id'=>$item['id']]));
echo date('d H:i:s').' ==》 '.$item['id'].':'.$ret."\n";
... ...