From 22dffa1bb95b945a5296711bb4367034bdb20771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=BD=B3=E6=9E=97?= Date: Fri, 11 Sep 2026 15:47:23 +0800 Subject: [PATCH] fix(opencode): apply De Morgan for staticcheck QF1001 golangci-lint failed on the CN/OpenCode billing-candidate guard. --- backend/internal/service/openai_gateway_usage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/internal/service/openai_gateway_usage.go b/backend/internal/service/openai_gateway_usage.go index 0998dedbf0..2add82354b 100644 --- a/backend/internal/service/openai_gateway_usage.go +++ b/backend/internal/service/openai_gateway_usage.go @@ -918,7 +918,7 @@ func groupMediaPricingLooksIncomplete(group *Group) bool { // 运营者的修复手段是配置账号级 model_mapping(映射到已定价的 CN 模型)或 // 分组/渠道显式定价。 func (s *OpenAIGatewayService) filterCNProviderBillingModelCandidates(ctx context.Context, account *Account, apiKey *APIKey, candidates []string) []string { - if account == nil || !(account.IsCNProvider() || account.IsOpenCodeGo()) { + if account == nil || (!account.IsCNProvider() && !account.IsOpenCodeGo()) { return candidates } out := make([]string, 0, len(candidates))