Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小程序生成无限量二维码接口缺少参数 #965

Closed
franktrue opened this issue Oct 18, 2017 · 3 comments
Closed

小程序生成无限量二维码接口缺少参数 #965

franktrue opened this issue Oct 18, 2017 · 3 comments

Comments

@franktrue
Copy link

我用的环境

PHP 版本:7.1.7
overtrue/wechat 版本:^3.1
是否使用了框架?框架名称:laravel5.5

问题及现象

缺少参数代码如下
EasyWeChat\MiniProgram\QRCode\QRCode

/**
     * Get WXACode unlimit.
     *
     * @param string $scene
     * @param int    $width
     * @param bool   $autoColor
     * @param array  $lineColor
     *
     * @return \Psr\Http\Message\StreamInterface
     */
    public function getAppCodeUnlimit($scene,  $width = 430, $autoColor = false, $lineColor = ['r' => 0, 'g' => 0, 'b' => 0])
    {
        $params = [
            'scene' => $scene,
            'width' => $width,
            'auto_color' => $autoColor,
            'line_color' => $lineColor,
        ];

        return $this->getStream(self::API_GET_WXACODE_UNLIMIT, $params);
    }

官方接口文件显示有一个page参数
image
希望添加一下

@mingyoung
Copy link
Collaborator

之前是没有这个参数的,现在有点尴尬,这个参数不知加在哪个位置好😂

@mingyoung
Copy link
Collaborator

@fnf1993 可以用这个方法 appCodeUnlimit (#991)

@franktrue
Copy link
Author

THX~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants