This commit is contained in:
2026-07-22 17:40:57 +08:00
parent 39a97f106c
commit 14d96fabbe
7 changed files with 67 additions and 0 deletions

View File

@@ -50,4 +50,7 @@ func TestIsQueryBillingAPIKey(t *testing.T) {
if isQueryBillingAPIKey("jy000004") {
t.Fatal("信用司南查空不计费,不应在白名单中")
}
if isQueryBillingAPIKey("jy000002") || isQueryBillingAPIKey("jy000003") {
t.Fatal("全景雷达PD查空不计费不应在白名单中")
}
}

View File

@@ -15,8 +15,10 @@ const (
const (
BusiCodeSuccess = 10 // 查询成功
BusiCodeNotFound = 1000 // 未查得
BusiCodeProductError = 1004 // 产品编号异常
BusiCodeSignError = 1005 // 签名异常
BusiCodeDataRequestError = 1007 // 数据请求异常
BusiCodeServiceNotOpen = 1008 // 服务尚未开通或已暂停
BusiCodeParamError = 1010 // 参数错误
BusiCodeUnknown = -1 // 未知错误
)
@@ -35,8 +37,10 @@ var platformCodeDesc = map[int]string{
var busiCodeDesc = map[int]string{
BusiCodeSuccess: "查询成功",
BusiCodeNotFound: "未查得",
BusiCodeProductError: "产品编号异常",
BusiCodeSignError: "签名异常",
BusiCodeDataRequestError: "数据请求异常",
BusiCodeServiceNotOpen: "服务尚未开通或已暂停使用",
BusiCodeParamError: "参数错误",
BusiCodeUnknown: "未知错误",
}