From 49e9beea54b7ada9ab5d09e6f9cd93a489d87e23 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期四, 20 三月 2025 13:50:21 +0800 Subject: [PATCH] fix:上传 --- LifePayment/LifePayment.Host/LifePaymentServiceHostModule.cs | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.Host/LifePaymentServiceHostModule.cs b/LifePayment/LifePayment.Host/LifePaymentServiceHostModule.cs index f29bd19..9759f0f 100644 --- a/LifePayment/LifePayment.Host/LifePaymentServiceHostModule.cs +++ b/LifePayment/LifePayment.Host/LifePaymentServiceHostModule.cs @@ -54,7 +54,7 @@ //Configure<AliYunSMSSettingOptions>(configuration.GetSection("AliYunSMSSetting")); context.Services.AddAutoMapperObjectMapper(); - + ConfigurePays(context, configuration); context.Services.AddAuthentication("Bearer").AddIdentityServerAuthentication(options => { options.Authority = configuration["AuthServer:Authority"]; @@ -149,7 +149,10 @@ cacheOptions.KeyPrefix = "LifePaymentServices_"; cacheOptions.GlobalCacheEntryOptions.SlidingExpiration = TimeSpan.FromMinutes(20); }); + this.Configure<OssSettings>(configuration.GetSection("ossSettings")); this.Configure<ACOOLYOption>(configuration.GetSection("ACOOLY")); + this.Configure<Config>("AliPayEcsign", configuration.GetSection("AliPayEcsign")); + this.Configure<InformationOption>(configuration.GetSection("WeiXinCgi")); } public override void OnApplicationInitialization(ApplicationInitializationContext context) -- Gitblit v1.9.1