temp
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user