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:
parent
68d0c9d6f7
commit
51430adafc
|
|
@ -12,18 +12,18 @@ class AppConfig {
|
||||||
});
|
});
|
||||||
|
|
||||||
factory AppConfig.development() => const AppConfig(
|
factory AppConfig.development() => const AppConfig(
|
||||||
apiBaseUrl: 'http://10.0.2.2:8000',
|
apiBaseUrl: 'http://10.0.2.2:18000',
|
||||||
wsBaseUrl: 'ws://10.0.2.2:8000',
|
wsBaseUrl: 'ws://10.0.2.2:18000',
|
||||||
environment: 'development',
|
environment: 'development',
|
||||||
);
|
);
|
||||||
|
|
||||||
factory AppConfig.production() => const AppConfig(
|
factory AppConfig.production() => const AppConfig(
|
||||||
apiBaseUrl: 'https://api.it0.your-domain.com',
|
apiBaseUrl: 'http://154.84.135.121:18000',
|
||||||
wsBaseUrl: 'wss://api.it0.your-domain.com',
|
wsBaseUrl: 'ws://154.84.135.121:18000',
|
||||||
environment: 'production',
|
environment: 'production',
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
final appConfigProvider = Provider<AppConfig>((ref) {
|
final appConfigProvider = Provider<AppConfig>((ref) {
|
||||||
return AppConfig.development();
|
return AppConfig.production();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue