refactor(internal): 优化 OSS 预签名 URL 缓存刷新任务和英雄数据缓存逻辑
- 注释掉 OSS预签名 URL 缓存刷新任务的定时执行代码 - 在 hero/hero.go 中增加对 Redis缓存和英雄数据集的非空校验 - 修改 OSS预签名 URL 生成逻辑,自动替换为 CDN 域名
This commit is contained in:
@@ -420,7 +420,7 @@ func (l *Logic) GetHeroDetailByCode(ctx context.Context, code string) (*v1.HeroD
|
||||
return heroDetailVO, nil
|
||||
}
|
||||
|
||||
// ClearHeroCache 清理英雄相关缓存
|
||||
// 清理英雄相关缓存
|
||||
func (l *Logic) ClearHeroCache(ctx context.Context, code string) error {
|
||||
redis := g.Redis()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user