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

【咨询】为什么使用微信通知监听服务要传入mchID和apiKey呢? #100

Open
mztlive opened this issue May 24, 2023 · 1 comment

Comments

@mztlive
Copy link

mztlive commented May 24, 2023

源码是这样定义方法的:

// 微信通知监听服务
func (cli *Client) NewServer(token, aesKey, mchID, apiKey string, validate bool, handler func(map[string]interface{}) map[string]interface{}) (*server.Server, error) {
	return server.NewServer(cli.appid, token, aesKey, mchID, apiKey, validate, handler)
}

我看了微信的后台,根本没有mchID和apiKey这两个东西啊。我怎么传入呢?

@royalrick
Copy link
Owner

这几个字段个适用于微信支付,没有可以填空。

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