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