1.0.202004170819 • Published 4 years ago

@mmstudio/an000028 v1.0.202004170819

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

微信-小程序用户基本信息

配置

  • 需在项目下的mm.json文件中配置wx.appidwx.appsecret
  • wx.appid:小程序唯一凭证,即 AppID。
  • wx.appsecret:小程序唯一凭证密钥,即 AppSecret。
{
	"wx": {
		"getopenid": false,			// 必须为false或不配置
		"getuserinfo": false,		// 必须为false或不配置
		"appid": "xxx",
		"appsecret": "xxx"
	}
}

参数

参数code通过原子操作获取用户code获取.

公众号用户信息获取

当前原子操作适用于微信小程序的用户信息获取,如果在公众号上获取用户信息,请使用公众号用户信息获取