f
This commit is contained in:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user