mirror of
https://github.com/v2board/v2board.git
synced 2025-01-25 15:39:10 +08:00
update
This commit is contained in:
parent
928e59a977
commit
4992ea635c
@ -11,11 +11,11 @@ use App\Jobs\SendEmail;
|
||||
class MailController extends Controller
|
||||
{
|
||||
public function send (MailSend $request) {
|
||||
if ($request->input('type') == 2 && $request->input('recevicer')) {
|
||||
if ($request->input('type') == 2 && $request->input('receiver')) {
|
||||
abort(500, '收件人不能为空');
|
||||
}
|
||||
|
||||
if ($request->input('recevicer')) {
|
||||
if ($request->input('receiver')) {
|
||||
$users = User::whereIn('id', $recevicer)->get();
|
||||
} else {
|
||||
$users = User::all();
|
||||
@ -25,7 +25,7 @@ class MailController extends Controller
|
||||
SendEmail::dispatch([
|
||||
'email' => $user->email,
|
||||
'subject' => $request->input('subject'),
|
||||
'template_name' => 'mail.sendCustom',
|
||||
'template_name' => 'mail.sendEmailCustom',
|
||||
'template_value' => [
|
||||
'name' => config('v2board.app_name', 'V2Board'),
|
||||
'url' => config('v2board.app_url'),
|
||||
|
98
resources/views/mail/sendEmalCustom.blade.php
Normal file
98
resources/views/mail/sendEmalCustom.blade.php
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user