Jelajahi Sumber

修改采集器修改资讯验证器

15313670163 3 bulan lalu
induk
melakukan
9b49c3e719
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      app/Controller/CollectorController.php

+ 2 - 0
app/Controller/CollectorController.php

@@ -655,6 +655,7 @@ class CollectorController extends AbstractController
     {
     {
         $requireData = $this->request->all();
         $requireData = $this->request->all();
         $validator = $this->validationFactory->make(
         $validator = $this->validationFactory->make(
+
             $requireData,
             $requireData,
             [
             [
                 'art_id' => 'required',
                 'art_id' => 'required',
@@ -674,6 +675,7 @@ class CollectorController extends AbstractController
                 'is_original.required' => '原创不能为空',
                 'is_original.required' => '原创不能为空',
                 'islink.required' => '外链不能为空'
                 'islink.required' => '外链不能为空'
             ]
             ]
+            
         ); 
         ); 
         if ($validator->fails()) {
         if ($validator->fails()) {
             $errorMessage = $validator->errors()->first();
             $errorMessage = $validator->errors()->first();