This commit is contained in:
root 2019-12-31 01:04:55 +08:00
parent 4992ea635c
commit 6de46f5c36

View File

@ -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, '收件人不能为空');
}