This commit is contained in:
2025-03-29 20:33:06 +08:00
parent 865cd3fee3
commit f09549b61e
3 changed files with 12 additions and 3 deletions

View File

@@ -3,7 +3,6 @@ import path from 'path';
export const env = dotenv.config({
path: [path.resolve(process.cwd(), '.env'), path.resolve(process.cwd(), '.env.wxopen')],
});
console.log(env.parsed);
export const config = {
domain: env.parsed?.DOMAIN,

View File

@@ -109,7 +109,6 @@ export const refreshToken = async (refreshToken: string): Promise<RefreshToken>
const refreshUrl = `https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=${appId}&grant_type=refresh_token&refresh_token=${refreshToken}`;
const res = await fetch(refreshUrl);
const data = await res.json();
console.log(data);
return data;
};