作者 邓超

x

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