From be29a11a5469f77c3caf35df0f3451d6e3d7eb19 Mon Sep 17 00:00:00 2001 From: WangDL Date: Sat, 9 May 2026 19:49:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20mock=20=E6=A8=A1=E5=BC=8F=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=E5=90=8C=E6=97=B6=E7=9C=8B=20NODE=5FENV=20=E5=92=8C?= =?UTF-8?q?=20AI=5FPROVIDER?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/auth/auth.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/auth/auth.service.ts b/src/modules/auth/auth.service.ts index 14171f3..c504a6e 100644 --- a/src/modules/auth/auth.service.ts +++ b/src/modules/auth/auth.service.ts @@ -135,7 +135,9 @@ export class AuthService { } private isMockMode(): boolean { - return this.configService.get('app.nodeEnv') !== 'production'; + const env = this.configService.get('app.nodeEnv'); + const aiProvider = this.configService.get('ai.provider'); + return env !== 'production' || aiProvider === 'mock'; } private verifyMockApple(identityToken: string, email?: string | null): string {