root 5 anos atrás
pai
commit
6de46f5c36
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/Admin/MailController.php

+ 1 - 1
app/Http/Controllers/Admin/MailController.php

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