refactor(api): 优化抖音API请求重试机制和客户端配置
构建上传工具 / build (push) Successful in 1m12s

- 实现了抖音API请求失败时的自动重试逻辑,间隔100毫秒
- 添加了上下文取消支持,避免无限重试
- 将HTTP客户端改为全局变量,提升性能和连接复用
- 前端上传线程数限制从100调整为500
- 更新类型声明以符合最新Go语言规范
This commit is contained in:
2026-07-27 00:41:14 +08:00
parent 8889e9ab55
commit 2c0207c45f
3 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ func main() {
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.startup,
Bind: []interface{}{
Bind: []any{
app,
},
})