xiangyixiangqin/server
zpc 9be72eb106
All checks were successful
continuous-integration/drone/push Build is passing
feat(wechat): Add access token refresh control and improve template message error handling
- Add forceRefresh parameter to GetServiceAccountAccessTokenAsync for cache bypass capability
- Implement automatic token refresh retry logic for HTTP 412 and token expiration error codes (40001, 42001)
- Extract SendServiceAccountTemplateMessageAsync into internal method to support retry mechanism
- Enhance logging with contextual parameters (AppId, ToUser, TemplateId, AccessToken prefix) for better diagnostics
- Add conditional logging for failed requests with full diagnostic information
- Improve error handling to distinguish between token expiration scenarios and other failures
- Add informational logging when requesting new access tokens
2026-03-29 20:51:06 +08:00
..
src feat(wechat): Add access token refresh control and improve template message error handling 2026-03-29 20:51:06 +08:00
tests 修改逻辑 2026-02-28 03:49:11 +08:00
.dockerignore 添加发布文件 2026-01-13 20:43:20 +08:00
Directory.Build.props 1 2026-01-02 18:00:49 +08:00
global.json 1 2026-01-02 18:00:49 +08:00
SignalR生产环境配置.md 聊天. 2026-01-14 20:23:13 +08:00
XiangYi.sln 1 2026-01-02 18:00:49 +08:00
技术栈与开发规范.md 移动文档 2025-12-28 22:16:58 +08:00
数据库设计.md 移动文档 2025-12-28 22:16:58 +08:00