zhangchangchun 5 年 前
コミット
a7b6ea5f60
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      app/Http/Controllers/Topic/TopicController.php

+ 1 - 1
app/Http/Controllers/Topic/TopicController.php

@@ -100,7 +100,7 @@ class TopicController extends Controller {
     //开启
     public function isOpen(Request $request) {
         $validator = Validator::make($request->all(), [
-            'id' => 'integer|string|max:12',
+            'id' => 'integer|required|max:12',
             'is_open' => ['required', Rule::in(0, 1)]
         ]);
         if ($validator->fails()) {