fix: handle empty AI500 coin list gracefully instead of error

This commit is contained in:
tinkle-community
2026-01-23 20:12:11 +08:00
parent 2f54d1d4c0
commit b5716ff3cb
3 changed files with 11 additions and 1 deletions

View File

@@ -447,6 +447,7 @@ func (e *StrategyEngine) GetCandidateCoins() ([]CandidateCoin, error) {
if err != nil {
return nil, err
}
// 空列表是正常情况,直接返回
return e.filterExcludedCoins(coins), nil
case "oi_top":
@@ -466,6 +467,7 @@ func (e *StrategyEngine) GetCandidateCoins() ([]CandidateCoin, error) {
if err != nil {
return nil, err
}
// 空列表是正常情况,直接返回
return e.filterExcludedCoins(coins), nil
case "mixed":