作者 邓超

log

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