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

关于支持多公众号的管理 #3421

Open
ttomato opened this issue Nov 26, 2024 · 1 comment
Open

关于支持多公众号的管理 #3421

ttomato opened this issue Nov 26, 2024 · 1 comment

Comments

@ttomato
Copy link

ttomato commented Nov 26, 2024

简要描述

在MP_Quick Start里提到,
WxMpService 需要在实际项目中保持单例,
请问是否可以使用WxJava同时管理对接多个公众号,如何使用?

WxMpDefaultConfigImpl config = new WxMpDefaultConfigImpl();
config.setAppId("..."); // 设置微信公众号的appid
config.setSecret("..."); // 设置微信公众号的app corpSecret
config.setToken("..."); // 设置微信公众号的token
config.setAesKey("..."); // 设置微信公众号的EncodingAESKey

WxMpService wxService = new WxMpServiceImpl();// 实际项目中请注意要保持单例,不要在每次请求时构造实例,具体可以参考demo项目
wxService.setWxMpConfigStorage(config);

@binarywang
Copy link
Owner

不是有对应的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