This commit is contained in:
2026-04-17 21:57:23 +08:00
parent aa2c3fb84d
commit 3d89b59a67
3 changed files with 6 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ func Boot(cfg *conf.Config) {
coll := NewCollector(COLLECTOR_URL)
// 启动时检查并补全订单簿数据
CheckAndRepairOrderBooks(cfg.AccountID)
// CheckAndRepairOrderBooks(cfg.AccountID)
// 创建cron调度器
c := cron.New(cron.WithSeconds())

View File

@@ -108,10 +108,10 @@ func SaveData(status *types.StatusData) error {
}
// 处理订单簿逻辑
if err := processOrderBook(status.Data.Assets.AccountID, order, ymd, now, open_price); err != nil {
fmt.Printf("处理订单簿失败: %v\n", err)
// 不返回错误,避免影响主流程
}
// if err := processOrderBook(status.Data.Assets.AccountID, order, ymd, now, open_price); err != nil {
// fmt.Printf("处理订单簿失败: %v\n", err)
// // 不返回错误,避免影响主流程
// }
}
}