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

公众号模板消息不兼容跳转小程序 #1025

Closed
cnny opened this issue Nov 14, 2017 · 2 comments
Closed

公众号模板消息不兼容跳转小程序 #1025

cnny opened this issue Nov 14, 2017 · 2 comments

Comments

@cnny
Copy link

cnny commented Nov 14, 2017

我用的环境

PHP 版本:
overtrue/wechat 版本:4.0
是否使用了框架?框架名称:yii2

问题及现象

你好,公众号模板消息更新了接口,支持跳转小程序,但是我看您的源码好像并没有兼容。
image

@mingyoung
Copy link
Collaborator

mingyoung commented Nov 21, 2017

可以直接这样用:

$app->template_message->send([
    'touser' => 'xxx',
    'template_id' => 'xxx',
    'miniprogram' => [],
    'appid' => 'xxx',
    'pagepath' => 'xxx',
    // ...
]);

@cnny
Copy link
Author

cnny commented Nov 22, 2017 via email

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