4.6.201909161534 • Published 5 years ago
@dfeidao/fd-am000037 v4.6.201909161534
微信登录(调起微信进行微信登录)
Installation
yarn add --dev @dfeidao/fd-am000037
Example
import am037 from '@dfeidao/fd-am000037';
export default async function a001(fd: IFeidaoAiMobile) {
// 微信开放平台上创建应用后,在管理中心下找到创建的应用,点击查看可以得到AppID和AppSecret.
const app_id = 'wx59848add8e868031';
const app_secret = '30d10d0310b0e582db0e9e0073048b3d';
const user = await wx_auth(app_id, app_secret);
}
返回结果
{
// 用户的标识,对当前开发者帐号唯一
openid
// 用户昵称
nickname
// 用户性别,1为男性,2为女性
sex
// 用户个人资料填写的省份
province
// 用户个人资料填写的城市
city
// 国家,如中国为CN
country
// 用户头像,最后一个数值代表正方形头像大小,用户没有头像时该项为空
headimgurl
// 用户特权信息,json数组,如微信沃卡用户为(chinaunicom)
privilege
// 用户统一标识。针对一个微信开放平台帐号下的应用,同一用户的unionid是唯一的。
unionid
}
4.6.201909161534
5 years ago
4.6.201908021003
5 years ago
4.6.201908011759
5 years ago
4.6.201908011726
5 years ago