fix(token-cache): 版本过时时使用最新token而非旧token
上次修复(2665230a)只阻止了写入缓存,但仍返回旧token导致403。 现在版本过时时直接使用DB中的最新token返回。 - 重构 IsTokenVersionStale 为 CheckTokenVersion,返回最新account - 消除重复DB查询,复用版本检查时已获取的account
Please register or sign in to comment
上次修复(2665230a)只阻止了写入缓存,但仍返回旧token导致403。 现在版本过时时直接使用DB中的最新token返回。 - 重构 IsTokenVersionStale 为 CheckTokenVersion,返回最新account - 消除重复DB查询,复用版本检查时已获取的account