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
35598308
"backend/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "51572b5da006bc9cb396bbc2d957e2e7c418ba76"
Commit
35598308
authored
Dec 25, 2025
by
ianshaw
Browse files
fix(service): 应用德摩根定律修复 staticcheck QF1001 警告
parent
55946801
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/gemini_oauth_service.go
View file @
35598308
...
...
@@ -50,7 +50,7 @@ func (s *GeminiOAuthService) GetOAuthConfig() *GeminiOAuthCapabilities {
clientID
:=
strings
.
TrimSpace
(
s
.
cfg
.
Gemini
.
OAuth
.
ClientID
)
clientSecret
:=
strings
.
TrimSpace
(
s
.
cfg
.
Gemini
.
OAuth
.
ClientSecret
)
enabled
:=
clientID
!=
""
&&
clientSecret
!=
""
&&
!
(
clientID
=
=
geminicli
.
GeminiCLIOAuthClientID
&&
clientSecret
=
=
geminicli
.
GeminiCLIOAuthClientSecret
)
(
clientID
!
=
geminicli
.
GeminiCLIOAuthClientID
||
clientSecret
!
=
geminicli
.
GeminiCLIOAuthClientSecret
)
return
&
GeminiOAuthCapabilities
{
AIStudioOAuthEnabled
:
enabled
,
...
...
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