Permalink
Browse files

change request parameter (#567)

如果使用'POST'请求,微信服务器无法接收参数,而返回“param path length invalid”,改用'JSON'请求即可。
  • Loading branch information...
1 parent 718b8e9 commit 20500698000c420e776694feb4ea03852f1e4403 @cloudsthere cloudsthere committed with Jan 11, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/MiniProgram/QRCode/QRCode.php
@@ -45,6 +45,6 @@ class QRCode extends AbstractMiniProgram
*/
public function create($path, $width = 430)
{
- return $this->parseJSON('POST', [self::API_CREATE_QRCODE, compact('path', 'width')]);
+ return $this->parseJSON('JSON', [self::API_CREATE_QRCODE, compact('path', 'width')]);
}
}

0 comments on commit 2050069

Please sign in to comment.