This commit is contained in:
tanglong 2025-08-11 10:16:33 +08:00
parent 85cb2d82ea
commit b535f6d69a
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace YD_WeChatApplet
{ {
serverOptions.Limits.MaxRequestBodySize = 10485760; serverOptions.Limits.MaxRequestBodySize = 10485760;
}); });
webBuilder.UseKestrel().UseUrls("http://*:9993"); webBuilder.UseKestrel().UseUrls("http://*:9995");
webBuilder.UseIIS(); webBuilder.UseIIS();
webBuilder.UseStartup<Startup>(); webBuilder.UseStartup<Startup>();
}).UseServiceProviderFactory(new AutofacServiceProviderFactory()); }).UseServiceProviderFactory(new AutofacServiceProviderFactory());

View File

@ -69,7 +69,7 @@ namespace YD_WeChatApplet
services.AddScoped<IServerService, ServerService>(); services.AddScoped<IServerService, ServerService>();
services.AddScoped<IFrameworkService, FrameworkService>(); services.AddScoped<IFrameworkService, FrameworkService>();
services.AddScoped<ICacheService, RedisCacheService>(); services.AddSingleton<ICacheService, RedisCacheService>();
services.AddSession(); services.AddSession();
services.AddMemoryCache(); services.AddMemoryCache();
services.AddHttpContextAccessor(); services.AddHttpContextAccessor();