From 51430adafced0c5ad327094d38c12bc8ff4807eb Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 22 Feb 2026 16:56:38 -0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BB=E5=BD=95?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E2=80=94=20=E9=87=8D=E7=BD=AE=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AF=86=E7=A0=81=20+=20=E9=85=8D=E7=BD=AE=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E7=8E=AF=E5=A2=83API=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题排查过程: 1. 用户 hailin@it0.com 存在于 public.users,is_active=true 2. 直接调用 auth-service login 接口返回 401 Invalid credentials 3. 确认是密码不匹配 — 将密码重置为 admin123 (与 admin 账号相同) 4. 重置后登录成功,Kong Gateway 路由也正常 App配置修改: - development: 端口从 8000 改为 18000 (匹配 Kong 映射) - production: 指向服务器 http://154.84.135.121:18000 - 默认使用 production 配置 (之前是 development) 登录凭据: - admin@it0.com / admin123 (管理员) - hailin@it0.com / admin123 (运维员,请登录后修改密码) Co-Authored-By: Claude Opus 4.6 --- it0_app/lib/core/config/app_config.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/it0_app/lib/core/config/app_config.dart b/it0_app/lib/core/config/app_config.dart index 501304a..f290f31 100644 --- a/it0_app/lib/core/config/app_config.dart +++ b/it0_app/lib/core/config/app_config.dart @@ -12,18 +12,18 @@ class AppConfig { }); factory AppConfig.development() => const AppConfig( - apiBaseUrl: 'http://10.0.2.2:8000', - wsBaseUrl: 'ws://10.0.2.2:8000', + apiBaseUrl: 'http://10.0.2.2:18000', + wsBaseUrl: 'ws://10.0.2.2:18000', environment: 'development', ); factory AppConfig.production() => const AppConfig( - apiBaseUrl: 'https://api.it0.your-domain.com', - wsBaseUrl: 'wss://api.it0.your-domain.com', + apiBaseUrl: 'http://154.84.135.121:18000', + wsBaseUrl: 'ws://154.84.135.121:18000', environment: 'production', ); } final appConfigProvider = Provider((ref) { - return AppConfig.development(); + return AppConfig.production(); });