Browse Source

提建议

lizhen_gitee 1 year ago
parent
commit
869bd83d48
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Feedback.php

+ 2 - 2
application/api/controller/Feedback.php

@@ -9,7 +9,7 @@ use think\Db;
  */
 class Feedback extends Api
 {
-    protected $noNeedLogin = [];
+    protected $noNeedLogin = ['addone'];
     protected $noNeedRight = ['*'];
 
     public function addone(){
@@ -19,7 +19,7 @@ class Feedback extends Api
         $mobile  = input('mobile','');
 
         if(empty($content)){
-            $this->error('内容不能为空');
+            //$this->error('内容不能为空');
         }
 
         if(!empty($images) && strpos($images,',')){