Update manage.go

This commit is contained in:
Ghostz
2024-08-31 14:24:38 +08:00
committed by GitHub
parent 635a26f2fd
commit d837aa86ac

View File

@@ -22,7 +22,7 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool {
case "insufficient_quota", "authentication_error", "permission_error", "forbidden":
return true
}
if err.Code == "invalid_api_key" {
if err.Code == "invalid_api_key" || err.Code == "account_deactivated" {
return true
}