refactor: optimize codebase encoding

This commit is contained in:
tinkle-community
2026-03-12 16:12:08 +08:00
parent 2314ece9d1
commit 736d2d385d
61 changed files with 2301 additions and 1533 deletions

View File

@@ -73,7 +73,7 @@ func (c *Client) fetchAI500() ([]CoinData, error) {
return nil, fmt.Errorf("API returned failure status")
}
// 空列表是正常情况,不是错误
// Empty list is a normal condition, not an error
if len(response.Data.Coins) == 0 {
log.Printf(" AI500 returned empty coin list (no coins meet criteria currently)")
return []CoinData{}, nil