From 9c567fad92dd3f3776790a7ad0d8f1d5f78d9d3b Mon Sep 17 00:00:00 2001 From: yangjianbo Date: Wed, 14 Jan 2026 09:46:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BD=91=E5=85=B3):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=20OAuth=20=E8=AF=B7=E6=B1=82=E4=B8=AD=20store=20=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E7=9A=84=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/internal/service/openai_codex_transform.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/internal/service/openai_codex_transform.go b/backend/internal/service/openai_codex_transform.go index 99c78310..264bdf95 100644 --- a/backend/internal/service/openai_codex_transform.go +++ b/backend/internal/service/openai_codex_transform.go @@ -92,10 +92,7 @@ func applyCodexOAuthTransform(reqBody map[string]any) codexTransformResult { // OAuth 走 ChatGPT internal API 时,store 必须为 false;显式 true 也会强制覆盖。 // 避免上游返回 "Store must be set to false"。 - if v, ok := reqBody["store"].(bool); !ok { - reqBody["store"] = false - result.Modified = true - } else if v { + if v, ok := reqBody["store"].(bool); !ok || v { reqBody["store"] = false result.Modified = true }