lrf402788946 4 years ago
parent
commit
dbbe7b704a
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 {
     //   grant_type: 'authorization_code',
     // };
     // const req = await this.httpGet(url, params);
+    console.log(code);
     const req = await this.httpGet('/api/fetch', { code });
     if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
     const openid = _.get(req, 'openid');