lrf402788946 4 years ago
parent
commit
ded34ff734
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/weixin.js

+ 1 - 0
app/service/weixin.js

@@ -55,6 +55,7 @@ class WeixinAuthService extends AxiosService {
     if (!code) throw new BusinessError(ErrorCode.SERVICE_FAULT, '授权未成功');
     const { appid } = this.wxInfo;
     const req = await this.httpGet('/api/fetch', { code });
+    console.log(req);
     if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
     const openid = _.get(req, 'openid');
     console.log(req);