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

不可以使用微信小程序的用户的openId来进行推送是吗 #138

Open
ChaunceyBee opened this issue Dec 15, 2022 · 1 comment
Open

Comments

@ChaunceyBee
Copy link

hello,你好。由于今天项目进行了迁移,新的小程序和公众号还没有绑定微信开放平台。发现使用微信的https://api.weixin.qq.com/sns/jscode2session接口获取不到unionId,后来找资料发现是因为没有绑定微信开放平台导致的。于是使用这个接口返回的 openId 为参数调用 me.chanjar.weixin.mp.api.impl.WxMpTemplateMsgServiceImpl#sendTemplateMsg像用户进行消息推送 出现了 40003,说我的openId不正确。 所以我想知道我们这个框架是不是只能用微信公众号中的用户openId,而不能使用小程序的用户openId是吗?

@binarywang
Copy link
Owner

这个项目是mp,也就是公众号的,小程序请使用另外一个demo项目

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