Jelajahi Sumber

fix:合在一起

super-yimizi 1 bulan lalu
induk
melakukan
3aa4b215d0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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();