Skip to content

wx-pay 只能配置一个appid,无法应对绑定多个小程序的场景 #3556

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

Open
hotcoffie opened this issue Apr 16, 2025 · 3 comments

Comments

@hotcoffie
Copy link

目前wx-pay虽然支持多配置,但是是以商户号切换配置的,每个商户号只能对应一个小程序appid,无法适配一个商户号对应多个小程序的场景

@hotcoffie
Copy link
Author

我尝试过wxPayService.setMultiConfig中直接用appid做KEY切换,但是在底层代码中,有不少地方会主动用商户号切换并或缺配置,例如支付回调,此时获取配置会空指针

@sslangss
Copy link

sslangss commented May 3, 2025

您好,您是如何解决这个问题还烦请教一下。

@sslangss
Copy link

sslangss commented May 3, 2025

我已经解决了,需要帮助吗

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