Skip to content

fix: 替换代币价格API为DexScreener,添加CORS中间件#9

Merged
elvin-du merged 1 commit into
mainfrom
makefile-update-version
May 27, 2026
Merged

fix: 替换代币价格API为DexScreener,添加CORS中间件#9
elvin-du merged 1 commit into
mainfrom
makefile-update-version

Conversation

@elvin-du
Copy link
Copy Markdown
Collaborator

  • 替换 opencc.xyz 为 DexScreener(免费、无需Auth、支持Filecoin链)
  • 统一抽取 fetchTokenPrice 函数,减少重复代码
  • API失败时缓存5分钟,避免重复请求导致504超时
  • 为 /api 和 /pro 路由组添加 CORS 中间件
  • 修复 _app/cros.go 中 gin 包的导入路径

- 替换 opencc.xyz 为 DexScreener(免费、无需Auth、支持Filecoin链)
- 统一抽取 fetchTokenPrice 函数,减少重复代码
- API失败时缓存5分钟,避免重复请求导致504超时
- 为 /api 和 /pro 路由组添加 CORS 中间件
- 修复 _app/cros.go 中 gin 包的导入路径
@elvin-du elvin-du merged commit 94752b1 into main May 27, 2026
2 checks passed
@elvin-du elvin-du deleted the makefile-update-version branch May 27, 2026 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant