mirror of
https://github.com/JimLiu/baoyu-skills.git
synced 2026-07-26 03:49:47 +08:00
feat(baoyu-post-to-wechat): improve credential loading with multi-source resolution and diagnostics
This commit is contained in:
@@ -694,6 +694,10 @@ async function main(): Promise<void> {
|
||||
}
|
||||
|
||||
const creds = loadCredentials(resolved);
|
||||
for (const skippedSource of creds.skippedSources) {
|
||||
console.error(`[wechat-api] Skipped incomplete credential source: ${skippedSource}`);
|
||||
}
|
||||
console.error(`[wechat-api] Credentials source: ${creds.source}`);
|
||||
console.error("[wechat-api] Fetching access token...");
|
||||
const accessToken = await fetchAccessToken(creds.appId, creds.appSecret);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user