lrf402788946 há 4 anos atrás
pai
commit
405cfa5cfe
1 ficheiros alterados com 1 adições e 0 exclusões
  1. 1 0
      app/service/weixin.js

+ 1 - 0
app/service/weixin.js

@@ -64,6 +64,7 @@ class WeixinAuthService extends AxiosService {
       throw new BusinessError(ErrorCode.SERVICE_FAULT, '未获取到openid');
     }
     // 获取微信的用户信息
+    console.log({ access_token, appid, openid });
     const res = await this.httpGet('https://api.weixin.qq.com/cgi-bin/user/info?lang=zh_CN', { access_token, appid, openid });
     const object = _.pick(res, [ 'nickname', 'headimgurl', 'openid' ]); // 昵称,头像,openid
     console.log(object);