Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
cbf3dba2
Unverified
Commit
cbf3dba2
authored
Feb 02, 2026
by
Wesley Liddick
Committed by
GitHub
Feb 02, 2026
Browse files
Merge pull request #454 from ZeroClover/feat-exclude-user-inactive-errors
feat(ops): 将 USER_INACTIVE 错误排除在 SLA 统计之外
parents
4329f72a
673caf41
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/ops_error_logger.go
View file @
cbf3dba2
...
@@ -905,7 +905,7 @@ func classifyOpsIsRetryable(errType string, statusCode int) bool {
...
@@ -905,7 +905,7 @@ func classifyOpsIsRetryable(errType string, statusCode int) bool {
func
classifyOpsIsBusinessLimited
(
errType
,
phase
,
code
string
,
status
int
,
message
string
)
bool
{
func
classifyOpsIsBusinessLimited
(
errType
,
phase
,
code
string
,
status
int
,
message
string
)
bool
{
switch
strings
.
TrimSpace
(
code
)
{
switch
strings
.
TrimSpace
(
code
)
{
case
"INSUFFICIENT_BALANCE"
,
"USAGE_LIMIT_EXCEEDED"
,
"SUBSCRIPTION_NOT_FOUND"
,
"SUBSCRIPTION_INVALID"
:
case
"INSUFFICIENT_BALANCE"
,
"USAGE_LIMIT_EXCEEDED"
,
"SUBSCRIPTION_NOT_FOUND"
,
"SUBSCRIPTION_INVALID"
,
"USER_INACTIVE"
:
return
true
return
true
}
}
if
phase
==
"billing"
||
phase
==
"concurrency"
{
if
phase
==
"billing"
||
phase
==
"concurrency"
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment