This commit is contained in:
2026-06-25 16:33:09 +08:00
parent baf82898b5
commit e32759dd95
7 changed files with 32 additions and 16 deletions

View File

@@ -4,8 +4,8 @@ import (
"fmt"
)
// GetQueryEmptyErrByCode 将数据宝错误码归类为“查询为空/不扣费”错误。
// 说明:上游通常依赖 errors.Is(err, ErrQueryEmpty) 来决定是否扣费。
// GetQueryEmptyErrByCode 将数据宝错误码归类为“查询为空”错误10001/10006
// 说明:应用层识别 ErrQueryEmpty 后对外返回 code=1000并正常扣费。
func GetQueryEmptyErrByCode(code string) error {
switch code {
case "10001", "10006":