fix: ServiceModule 注册 AuthService 时补充 IConfigService 参数

This commit is contained in:
zpc 2026-02-20 21:30:18 +08:00
parent 54418db98e
commit d95f4c02bc

View File

@ -53,9 +53,10 @@ public class ServiceModule : Module
var wechatService = c.Resolve<IWechatService>();
var ipLocationService = c.Resolve<IIpLocationService>();
var redisService = c.Resolve<IRedisService>();
var configService = c.Resolve<IConfigService>();
var jwtSettings = c.Resolve<JwtSettings>();
var logger = c.Resolve<ILogger<AuthService>>();
return new AuthService(dbContext, userService, jwtService, wechatService, ipLocationService, redisService, jwtSettings, logger);
return new AuthService(dbContext, userService, jwtService, wechatService, ipLocationService, redisService, configService, jwtSettings, logger);
}).As<IAuthService>().InstancePerLifetimeScope();
// ========== 支付系统服务注册 ==========