liuyu 4 年之前
父節點
當前提交
29433ddb39
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/weixin.js

+ 1 - 1
app/service/weixin.js

@@ -75,7 +75,7 @@ class WeixinAuthService extends AxiosService {
       throw new BusinessError(ErrorCode.SERVICE_FAULT, '获得微信用户信息失败');
     }
     const token = res.access_token;
-    console.log(token);
+    console.log(res);
     const urlun = 'https://api.weixin.qq.com/cgi-bin/user/info?access_token=' + token + '&openid=' + openid + '&lang=zh_CN';
     const result = await this.ctx.curl(urlun, {
       method: 'get',