作者 邓超

x

@@ -322,13 +322,14 @@ class Home extends Base { @@ -322,13 +322,14 @@ class Home extends Base {
322 $sendData['masssuit_interval_send']['end'] = intval($sendData['masssuit_interval_send']['end']??1); 322 $sendData['masssuit_interval_send']['end'] = intval($sendData['masssuit_interval_send']['end']??1);
323 } 323 }
324 324
  325 +
325 // 插入任务 326 // 插入任务
326 $job_id = db()->insert(sendJobsSql::$table,[ 327 $job_id = db()->insert(sendJobsSql::$table,[
327 'email_id' => $email['id'], 328 'email_id' => $email['id'],
328 'maildata' => $sendData, 329 'maildata' => $sendData,
329 'title' => $sendData['jobName'] ? : $sendData['subject'], 330 'title' => $sendData['jobName'] ? : $sendData['subject'],
330 'total' => count($sendData['tos']), 331 'total' => count($sendData['tos']),
331 - 'send_time' => $timer 332 + 'send_time' => $timer?:time()
332 ]); 333 ]);
333 if($job_id){ 334 if($job_id){
334 // 返回任务id 335 // 返回任务id