正在显示
1 个修改的文件
包含
10 行增加
和
2 行删除
| @@ -72,10 +72,11 @@ class SendJob { | @@ -72,10 +72,11 @@ class SendJob { | ||
| 72 | continue; | 72 | continue; |
| 73 | } | 73 | } |
| 74 | 74 | ||
| 75 | - }else{ | ||
| 76 | - $this->go_($list); | ||
| 77 | } | 75 | } |
| 78 | 76 | ||
| 77 | + $this->go_($list); | ||
| 78 | + | ||
| 79 | + | ||
| 79 | } | 80 | } |
| 80 | }else{ | 81 | }else{ |
| 81 | // 休眠30秒 | 82 | // 休眠30秒 |
| @@ -181,6 +182,8 @@ class SendJob { | @@ -181,6 +182,8 @@ class SendJob { | ||
| 181 | 182 | ||
| 182 | } | 183 | } |
| 183 | else{ | 184 | else{ |
| 185 | + // 是否已发送过了 | ||
| 186 | + if(!db()->count(\Model\sendJobStatusSql::count($data['id'],'all'))){ | ||
| 184 | $result = \Lib\Mail\MailFun::sendEmail($data['maildata'],$email); | 187 | $result = \Lib\Mail\MailFun::sendEmail($data['maildata'],$email); |
| 185 | // 更新状态 | 188 | // 更新状态 |
| 186 | db()->update(\Model\sendJobsSql::$table,[ | 189 | db()->update(\Model\sendJobsSql::$table,[ |
| @@ -195,6 +198,11 @@ class SendJob { | @@ -195,6 +198,11 @@ class SendJob { | ||
| 195 | 'status' => $result[0] ? 1 : 0, | 198 | 'status' => $result[0] ? 1 : 0, |
| 196 | 'error' => $result[0] ? $result[1] : '' | 199 | 'error' => $result[0] ? $result[1] : '' |
| 197 | ]); | 200 | ]); |
| 201 | + }else{ | ||
| 202 | + _echo('发送过了 '.$data['id']); | ||
| 203 | + } | ||
| 204 | + | ||
| 205 | + | ||
| 198 | } | 206 | } |
| 199 | 207 | ||
| 200 | // 协程结束后 | 208 | // 协程结束后 |
-
请 注册 或 登录 后发表评论