-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
微信小程序测试版uniformMessage提交字段问题 #1021
Comments
微信这么变态的问题坑过太多人了。 |
这是我测试出来的,希望不要坑到更多的人,我不知道去哪里说。 |
之前我记得是有path和pagepath两个值,所以你看源代码里MiniProgram类实际上提供了一个选择用哪个的参数,没想到现在又来了个新的写法pagePath,靠,恶心死人 |
建议弄一个腾讯开发的踩坑指南,方便大家查看。 |
我还没有导入那个wx-java 的开发包,现在这个是我自己写的发送逻辑。 |
那您又要加上一个了,但是我不知道这几个的区别,主要是开发文档上给的就是pagepath,还是小写的, |
准备在 |
3.3.9.B测试版本已增加相关方法,欢迎试用 |
简要描述
使用线上发布的微信小程序能够正常调用,而使用微信的体验版小程序调用相同的接口提示字段名称不对。查看结构后发现是微信官方字段里是pagepath,而我修改为pagePath后,体验版小程序能够正常发送模板消息。
重现步骤
接口地址
小程序向公众里发消息
###数据结构
{ "touser": "ojmEg*****pdqQ-gI", "mp_template_msg": { "appid": "wx29ef**00288", "template_id": "v6LPtkk***1lpCzkdHT64WS5Q54XCY", "url": "http://***:61112/urGnWI", "miniprogram": { "appid": "wx5e41****8da256", "pagepath": "/pages/index/index" }, "data": { "first": { "value": "硬盘读取时间" }, "keyword1": { "value": "硬盘读取时间" }, "keyword2": { "value": "(宇宙无敌战舰)" }, "keyword3": { "value": "2019-04-24 23:03:43" }, "keyword4": { "value": "更快达成交易" }, "remark": { "value": "更快达成交易" } } } }
微信报错结果
{ "errcode": 40165, "errmsg": "invalid weapp pagepath hint: [zKjMka09173929]" }
The text was updated successfully, but these errors were encountered: