|
@@ -288,7 +288,6 @@ class WeixinAuthService extends AxiosService {
|
|
query = `${query}&${key}=${wxapp[key]}`;
|
|
query = `${query}&${key}=${wxapp[key]}`;
|
|
}
|
|
}
|
|
url = `${url}${query}`;
|
|
url = `${url}${query}`;
|
|
- console.warn(`url=>${url}`);
|
|
|
|
const res = await this.ctx.curl(url, {
|
|
const res = await this.ctx.curl(url, {
|
|
method: 'get',
|
|
method: 'get',
|
|
headers: {
|
|
headers: {
|
|
@@ -296,8 +295,6 @@ class WeixinAuthService extends AxiosService {
|
|
},
|
|
},
|
|
dataType: 'json',
|
|
dataType: 'json',
|
|
});
|
|
});
|
|
- console.warn('res=>');
|
|
|
|
- console.warn(res);
|
|
|
|
const { openid } = res.data;
|
|
const { openid } = res.data;
|
|
if (!openid) throw new BusinessError(ErrorCode.BUSINESS, '未获取到openid', '未获取到openid');
|
|
if (!openid) throw new BusinessError(ErrorCode.BUSINESS, '未获取到openid', '未获取到openid');
|
|
return openid;
|
|
return openid;
|