- 注释掉 OSS预签名 URL 缓存刷新任务的定时执行代码 - 在 hero/hero.go 中增加对 Redis缓存和英雄数据集的非空校验 - 修改 OSS预签名 URL 生成逻辑,自动替换为 CDN 域名
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
package consts
|
||
|
||
const (
|
||
// 笑门官网查询英雄名称和神器名称,用作中文翻译
|
||
SimileHeroName = "https://static.smilegatemegaport.com/gameRecord/epic7/epic7_hero.json?_=1729322698936"
|
||
SimileArtifactName = "https://static.smilegatemegaport.com/gameRecord/epic7/epic7_artifact.json?_=1729322698936"
|
||
|
||
// 获取角色信息
|
||
HeroListURL = "https://e7-optimizer-game-data.s3-accelerate.amazonaws.com/herodata.json"
|
||
|
||
// 获取神器信息
|
||
ArtifactDataURL = "https://e7-optimizer-game-data.s3-accelerate.amazonaws.com/artifactdata.json"
|
||
|
||
// 根据角色名字查询配装
|
||
HeroNameURL = "https://krivpfvxi0.execute-api.us-west-2.amazonaws.com/dev/getBuilds"
|
||
|
||
// 官方数据接口示例:https://static.smilegatemegaport.com/event/live/epic7/guide/images/hero/c2027_s.png
|
||
// 角色图片基础 URL
|
||
GfHeroPngURL = "https://static.smilegatemegaport.com/event/live/epic7/guide/images/hero/"
|
||
|
||
EPIC_DB_URL = "https://epic7db.com/"
|
||
|
||
// S3/OSS 配置
|
||
S3AccessKey = "s5iWm6wXVvhCNN9nJlXwgWRf"
|
||
S3SecretKey = "91sTurpFtugXijPg0uSof3JcJma0HED"
|
||
S3Bucket = "epic"
|
||
S3Region = "cn-east-1"
|
||
S3Endpoint = "https://s3.bitiful.net"
|
||
// 自定义域名常量
|
||
S3CustomDomain = "https://bfoss.htoop.cn"
|
||
)
|