feat(wx): 实现小程序码生成自动重试机制

- 在生成小程序码时增加首次失败后清理缓存并重试的逻辑
- 新增强制刷新 access_token 的方法 getAccessTokenForcibly
- 优化了获取 access_token 失败的日志提示,不再在错误时清理缓存
- 移除生成小程序码接口对 token 错误时清理缓存的判断及操作
- 移除异常时清理缓存的代码,避免误删除有效缓存
- 调整二维码请求参数,移除注释的颜色配置代码
This commit is contained in:
2026-04-11 08:56:11 +08:00
parent 789b8ddeca
commit a57eb804eb
3 changed files with 87 additions and 21 deletions

View File

@@ -46,5 +46,5 @@
}
]
},
"lastUpdated": 1775866842655
"lastUpdated": 1775868870779
}