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

临时二维码接口无法生成以字符串为参数的二维码 #1020

Closed
memoryyang opened this issue Nov 11, 2017 · 2 comments
Closed

临时二维码接口无法生成以字符串为参数的二维码 #1020

memoryyang opened this issue Nov 11, 2017 · 2 comments

Comments

@memoryyang
Copy link

我用的环境

PHP 版本:5.6
overtrue/wechat 版本:3.0
框架名称:cakephp

问题及现象

生成带参数二维码:
使用临时二维码接口,无法创建以字符串为参数的二维码,建议添加QR_STR_SCENE类型接口。
temporary方法:

const SCENE_QR_TEMPORARY = 'QR_SCENE';
/**
     * Create temporary.
     *
     * @param string $sceneId
     * @param null   $expireSeconds
     *
     * @return \EasyWeChat\Support\Collection
     */
    public function temporary($sceneId, $expireSeconds = null)
    {
        $scene = ['scene_id' => intval($sceneId)];

        return $this->create(self::SCENE_QR_TEMPORARY, $scene, true, $expireSeconds);
    }
@overtrue
Copy link
Collaborator

@memoryyang
Copy link
Author

OK

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