...
|
...
|
@@ -114,9 +114,16 @@ class SendJob { |
|
|
$data['maildata'] = json_decode($data['maildata'],true);
|
|
|
// 查询邮箱
|
|
|
$email = db()->first(\Model\emailSql::first($data['email_id']));
|
|
|
|
|
|
// 更新状态
|
|
|
$upStatus = \Model\sendJobsSql::upStatus($data['id'],1);
|
|
|
_echo('更新任务状态 '.$data['id'].' ==> '.$upStatus);
|
|
|
db()->update(\Model\sendJobsSql::$table,[
|
|
|
'status' => 1,
|
|
|
'total' => count($data['maildata']['tos']??[])
|
|
|
],dbWhere([
|
|
|
'id' => $data['id']
|
|
|
]));
|
|
|
|
|
|
_echo('更新任务状态 '.$data['id']);
|
|
|
// 是否是单发送
|
|
|
if($data['maildata']['massSuit']??0){
|
|
|
$tos = $data['maildata']['tos'];
|
...
|
...
|
|