作者 邓超

log

@@ -114,7 +114,8 @@ class SendJob { @@ -114,7 +114,8 @@ class SendJob {
114 // 查询邮箱 114 // 查询邮箱
115 $email = db()->first(\Model\emailSql::first($data['email_id'])); 115 $email = db()->first(\Model\emailSql::first($data['email_id']));
116 // 更新状态 116 // 更新状态
117 - \Model\sendJobsSql::upStatus($data['id'],1,db()); 117 + $upStatus = \Model\sendJobsSql::upStatus($data['id'],1,db());
  118 + _echo('更新任务状态 '.$upStatus);
118 // 是否是单发送 119 // 是否是单发送
119 if($data['maildata']['massSuit']??0){ 120 if($data['maildata']['massSuit']??0){
120 $tos = $data['maildata']['tos']; 121 $tos = $data['maildata']['tos'];
@@ -77,7 +77,7 @@ class sendJobsSql { @@ -77,7 +77,7 @@ class sendJobsSql {
77 public static function upStatus(int $id, int $status, $db=null){ 77 public static function upStatus(int $id, int $status, $db=null){
78 $db = $db?:db(); 78 $db = $db?:db();
79 // 更新状态 79 // 更新状态
80 - $db->update(\Model\sendJobsSql::$table,[ 80 + return $db->update(\Model\sendJobsSql::$table,[
81 'status' => $status 81 'status' => $status
82 ],dbWhere([ 82 ],dbWhere([
83 'id' => $id 83 'id' => $id