This commit is contained in:
Mrx
2026-01-31 12:20:32 +08:00
parent ff86cb6fb9
commit d2b806eda0

View File

@@ -255,7 +255,8 @@ func (s *ShujubaoService) CallAPI(ctx context.Context, apiPath string, params ma
code := shujubaoResp.Code
if code == "10001" || code == "10006" {
return nil, ErrQueryEmpty
// 查空/查无:返回空数组,不视为错误
return []interface{}{}, nil
}
if code != "10000" {
shujubaoErr := NewShujubaoErrorFromCode(code, shujubaoResp.Message)