Explorar el Código

fix:合在一起

super-yimizi hace 1 mes
padre
commit
3aa4b215d0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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();