|
@@ -55,7 +55,7 @@ class WeixinAuthService extends AxiosService {
|
|
|
const { code, state } = query;
|
|
|
if (!code) throw new BusinessError(ErrorCode.SERVICE_FAULT, '授权未成功');
|
|
|
const { appid, appSecret } = this.wxInfo;
|
|
|
- const url = 'https://api.weixin.qq.com/sns/oauth2/access_token';
|
|
|
+ const url = '/api.weixin.qq.com/sns/oauth2/access_token';
|
|
|
const params = {
|
|
|
appid,
|
|
|
secret: appSecret,
|