Skip to content

Commit

Permalink
change request parameter (#567)
Browse files Browse the repository at this point in the history
如果使用'POST'请求,微信服务器无法接收参数,而返回“param path length invalid”,改用'JSON'请求即可。
  • Loading branch information
cloudsthere authored and overtrue committed Jan 11, 2017
1 parent 718b8e9 commit 2050069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniProgram/QRCode/QRCode.php
Expand Up @@ -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.