ci(drone): 添加 Go 模块和构建缓存

- 在 restore cache 和 rebuild cache 步骤中添加了 go-mod-cache 和 go
This commit is contained in:
hxt
2025-07-17 20:25:50 +08:00
parent 9ef6ac9cdb
commit 0ad79c4f27
75 changed files with 1400 additions and 1745 deletions

View File

@@ -150,6 +150,10 @@ func (l *Logic) GetHeroDetailByCode(ctx context.Context, code string) (*v1.HeroD
}
}
if fribbleHeroSet.JsonContent != "" {
err := thirdPartySync.RefreshHeroSetContentByHeroInfo(ctx, epicHeroInfo.HeroName, code, fribbleHeroSet.JsonContent)
if err != nil {
return nil, err
}
// 写入 Redis 缓存,永久
util.RedisCache.Set(ctx, cacheKey, fribbleHeroSet.JsonContent, 0)
}