Procházet zdrojové kódy

发帖位置验证

wzq před 5 roky
rodič
revize
68bacc6d17
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app/Http/Controllers/Post/PostController.php

+ 1 - 1
app/Http/Controllers/Post/PostController.php

@@ -173,7 +173,7 @@ class PostController extends Controller
             'topic_ids' => 'required|string|max:64',
             'title' => 'nullable|string|max:20',
             'content' => 'required|string|max:1000',
-            'location' => 'required|string',
+            'location' => 'nullable|string|20',
             'imgs' => 'required_if:type,image|array|max:9',
             'imgs.*' => 'required|url',
         ]);