lrf402788946 4 년 전
부모
커밋
405cfa5cfe
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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);