From d43361d7ed28967b128348e7743be0232ed90ce8 Mon Sep 17 00:00:00 2001 From: liapples Date: Fri, 27 Aug 2021 17:16:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E9=A2=91=E9=81=93=E5=8F=AF?= =?UTF-8?q?=E6=B8=85=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/UserChannelController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/Api/UserChannelController.php b/app/Http/Controllers/Api/UserChannelController.php index 75d07c0..1421255 100644 --- a/app/Http/Controllers/Api/UserChannelController.php +++ b/app/Http/Controllers/Api/UserChannelController.php @@ -19,9 +19,8 @@ class UserChannelController extends Controller { $formData = $request->only(['channels']); $request->validate([ - 'channels' => 'required|array', + 'channels' => 'nullable|array', ], [ - 'channels.required' => '未选择任何频道', 'channels.array' => 'channels必须是数组', ]);