mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-30 16:23:31 +00:00
fix(opencode): apply De Morgan for staticcheck QF1001
golangci-lint failed on the CN/OpenCode billing-candidate guard.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user