|
@@ -77,7 +77,7 @@ class WeixinAuthService extends AxiosService {
|
|
|
const { appid } = this.wxInfo;
|
|
|
const res = await this.httpGet('/api.weixin.qq.com/cgi-bin/user/info?lang=zh_CN', { appid, openid });
|
|
|
const object = _.pick(res, [ 'nickname', 'headimgurl', 'openid' ]); // 昵称,头像,openid
|
|
|
- return object;
|
|
|
+ return { name: object.nickname, icon: object.headimgurl, openid };
|
|
|
}
|
|
|
/**
|
|
|
* JsApi验证
|