2 Commits

Author SHA1 Message Date
bc16187fe0 Merge pull request 'fix:修复LoginCoreService依赖注入问题,支持双模式用户服务' (#15) from docs/update-readme-and-contributors into main
Reviewed-on: #15
2025-12-18 15:10:28 +08:00
moyin
b99b77e08b fix:修复LoginCoreService依赖注入问题,支持双模式用户服务
- 添加@Inject('UsersService')装饰器到LoginCoreService构造函数
- 支持根据配置动态切换UsersService和UsersMemoryService
- 确保开发测试模式和生产环境的无缝切换
- 修复之前服务启动时的依赖注入错误
2025-12-18 15:06:57 +08:00

View File

@@ -103,7 +103,7 @@ export interface VerificationCodeResult {
@Injectable()
export class LoginCoreService {
constructor(
private readonly usersService: UsersService,
@Inject('UsersService') private readonly usersService: UsersService,
private readonly emailService: EmailService,
private readonly verificationService: VerificationService,
) {}