refactor(internal): 优化 OSS 预签名 URL 缓存刷新任务和英雄数据缓存逻辑

- 注释掉 OSS预签名 URL 缓存刷新任务的定时执行代码
- 在 hero/hero.go 中增加对 Redis缓存和英雄数据集的非空校验
- 修改 OSS预签名 URL 生成逻辑,自动替换为 CDN 域名
This commit is contained in:
hu xiaotong
2025-07-18 16:56:36 +08:00
parent f8001aef5b
commit ce0fa7f2ed
4 changed files with 210 additions and 19 deletions

View File

@@ -18,6 +18,8 @@ const (
// 角色图片基础 URL
GfHeroPngURL = "https://static.smilegatemegaport.com/event/live/epic7/guide/images/hero/"
EPIC_DB_URL = "https://epic7db.com/"
// S3/OSS 配置
S3AccessKey = "s5iWm6wXVvhCNN9nJlXwgWRf"
S3SecretKey = "91sTurpFtugXijPg0uSof3JcJma0HED"