fix: 修复登录问题 — 重置用户密码 + 配置生产环境API地址

问题排查过程:
  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 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-22 16:56:38 -08:00
parent 68d0c9d6f7
commit 51430adafc
1 changed files with 5 additions and 5 deletions

View File

@ -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<AppConfig>((ref) {
return AppConfig.development();
return AppConfig.production();
});