lrf402788946 4 år sedan
förälder
incheckning
735c248bf8
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/service/weixin.js

+ 1 - 1
app/service/weixin.js

@@ -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,