diff --git a/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/AbpWeChatServiceBase.cs b/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/AbpWeChatServiceBase.cs index 3d33df4..35d87df 100644 --- a/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/AbpWeChatServiceBase.cs +++ b/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/AbpWeChatServiceBase.cs @@ -1,9 +1,13 @@ +using EasyAbp.Abp.WeChat.Common.Infrastructure.Options; using Volo.Abp.DependencyInjection; namespace EasyAbp.Abp.WeChat.Common.Infrastructure.Services; public abstract class AbpWeChatServiceBase : IAbpWeChatService + where TOptions : IAbpWeChatOptions { + public string AppId => Options.AppId; + protected IAbpLazyServiceProvider LazyServiceProvider { get; set; } protected TOptions Options { get; } diff --git a/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/IAbpWeChatService.cs b/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/IAbpWeChatService.cs index 6be7fda..6354799 100644 --- a/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/IAbpWeChatService.cs +++ b/src/Common/EasyAbp.Abp.WeChat.Common/Infrastructure/Services/IAbpWeChatService.cs @@ -5,4 +5,5 @@ namespace EasyAbp.Abp.WeChat.Common.Infrastructure.Services; /// public interface IAbpWeChatService { + string AppId { get; } } \ No newline at end of file diff --git a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/IAbpWeChatPayService.cs b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/IAbpWeChatPayService.cs index 9ec03ae..289a19c 100644 --- a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/IAbpWeChatPayService.cs +++ b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/IAbpWeChatPayService.cs @@ -5,4 +5,5 @@ namespace EasyAbp.Abp.WeChat.Pay.Services; /// public interface IAbpWeChatPayService { + string MchId { get; } } \ No newline at end of file diff --git a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/WeChatPayServiceBase.cs b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/WeChatPayServiceBase.cs index 4f77e3e..290ab43 100644 --- a/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/WeChatPayServiceBase.cs +++ b/src/Pay/EasyAbp.Abp.WeChat.Pay/Services/WeChatPayServiceBase.cs @@ -19,6 +19,8 @@ namespace EasyAbp.Abp.WeChat.Pay.Services /// public abstract class WeChatPayServiceBase : IAbpWeChatPayService { + public string MchId => Options.MchId; + protected IAbpLazyServiceProvider LazyServiceProvider { get; set; } protected AbpWeChatPayOptions Options { get; }