This commit is contained in:
root
2020-01-11 13:36:52 +08:00
parent 35f954cd84
commit f7fdfadfb0
87 changed files with 1241 additions and 947 deletions

View File

@ -10,7 +10,8 @@ use App\Jobs\SendEmail;
class MailController extends Controller
{
public function send (MailSend $request) {
public function send(MailSend $request)
{
if ($request->input('type') == 2 && empty($request->input('receiver'))) {
abort(500, '收件人不能为空');
}
@ -38,4 +39,4 @@ class MailController extends Controller
'data' => true
]);
}
}
}