3 Commits
Author SHA1 Message Date
siujamo a17131b62e fix(server): translate daily password errors to chinese 2026-09-10 17:55:45 +08:00
siujamo 8700555ae6 refactor(cache): replace manual redis caching with @Cacheable
- Add a primary defaultCacheManager with a two-hour entry TTL
- Add a named longTermCacheManager with a one-day entry TTL
- Replace the hand-rolled RedisTemplate read/write and midnight-TTL
  logic in DailyPasswordManager with a @Cacheable annotation
- Remove six imports left dead by the above
2026-09-10 17:35:08 +08:00
siujamo ee7b96532d fix(server): handle daily password fetch errors
- Wrap the upstream call so connection and HTTP failures surface
  as 502 Bad Gateway instead of unhandled exceptions
- Return 502 Bad Gateway when the upstream payload is empty
- Expire the cached password at midnight rather than after 24 hours
2026-09-10 16:35:07 +08:00