|
@@ -55,6 +55,7 @@ class WeixinAuthService extends AxiosService {
|
|
// grant_type: 'authorization_code',
|
|
// grant_type: 'authorization_code',
|
|
// };
|
|
// };
|
|
// const req = await this.httpGet(url, params);
|
|
// const req = await this.httpGet(url, params);
|
|
|
|
+ console.log(code);
|
|
const req = await this.httpGet('/api/fetch', { code });
|
|
const req = await this.httpGet('/api/fetch', { code });
|
|
if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
|
|
if (req.errcode && req.errcode !== 0) throw new BusinessError(ErrorCode.SERVICE_FAULT, 'openid获取失败');
|
|
const openid = _.get(req, 'openid');
|
|
const openid = _.get(req, 'openid');
|