Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@mztlive

Description

@mztlive

源码是这样定义方法的:

// 微信通知监听服务
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这两个东西啊。我怎么传入呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions