Browse Source

fix:合在一起

super-yimizi 1 day ago
parent
commit
3aa4b215d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/Share.php

+ 1 - 1
application/api/controller/Share.php

@@ -15,7 +15,7 @@ class Share extends Base
 
     public function add()
     {
-        $params = $this->request->only(['shareId', 'spm', 'page', 'query', 'from', 'platform']);
+        $params = $this->request->post(['shareId', 'spm', 'page', 'query', 'from', 'platform']);
 
         // 验证参数
         $validate = new ShareValidate();