正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -86,7 +86,12 @@ class HotMail { | @@ -86,7 +86,12 @@ class HotMail { | ||
| 86 | $w = ['email' =>$item['from']]; | 86 | $w = ['email' =>$item['from']]; |
| 87 | } | 87 | } |
| 88 | // 是否在 预热邮箱中 | 88 | // 是否在 预热邮箱中 |
| 89 | - if($this->db->cache(300)->count('select count(*) from `hot_mail` where '.dbWhere($w))){ | 89 | + $mkey = md5(dbWhere($w)); |
| 90 | + if(!isset($this->hotEmail[$mkey])){ | ||
| 91 | + $this->hotEmail[$mkey] = $this->db->count('select count(*) from `hot_mail` where '.dbWhere($w)); | ||
| 92 | + } | ||
| 93 | + | ||
| 94 | + if(!$this->hotEmail[$mkey]){ | ||
| 90 | 95 | ||
| 91 | $ret = $this->db->update(listsSql::$table,['is_hots'=>1],dbWhere(['id'=>$item['id']])); | 96 | $ret = $this->db->update(listsSql::$table,['is_hots'=>1],dbWhere(['id'=>$item['id']])); |
| 92 | echo date('d H:i:s').' ==》 '.$item['id'].':'.$ret."\n"; | 97 | echo date('d H:i:s').' ==》 '.$item['id'].':'.$ret."\n"; |
-
请 注册 或 登录 后发表评论