master
cody 5 months ago
parent 3b9f56ab36
commit f0cbfcf66a

@ -69,6 +69,8 @@ class SendEmail extends Command
$recordUser->send_time = date('Y-m-d H:i:s'); $recordUser->send_time = date('Y-m-d H:i:s');
$recordUser->save(); $recordUser->save();
} }
$records->send_time = date('Y-m-d H:i:s');
$records->save();
} }
return $this->info('更新完成'); return $this->info('更新完成');
} }

@ -22,6 +22,8 @@ return new class extends Migration {
$table->integer('email_template_id')->nullable()->comment('邮件模版id'); $table->integer('email_template_id')->nullable()->comment('邮件模版id');
// 状态 // 状态
$table->tinyInteger('status')->nullable()->default(0)->comment('状态0:待处理1:已处理'); $table->tinyInteger('status')->nullable()->default(0)->comment('状态0:待处理1:已处理');
// 发送时间
$table->dateTime('send_time')->nullable()->comment('发送时间');
$table->timestamps(); $table->timestamps();
$table->softDeletes(); $table->softDeletes();
}); });

Loading…
Cancel
Save