Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows to get appId/mchId of services #89

Merged
merged 1 commit into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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<TOptions, TApiRequester> : IAbpWeChatService
where TOptions : IAbpWeChatOptions
{
public string AppId => Options.AppId;

protected IAbpLazyServiceProvider LazyServiceProvider { get; set; }

protected TOptions Options { get; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ namespace EasyAbp.Abp.WeChat.Common.Infrastructure.Services;
/// </summary>
public interface IAbpWeChatService
{
string AppId { get; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ namespace EasyAbp.Abp.WeChat.Pay.Services;
/// </summary>
public interface IAbpWeChatPayService
{
string MchId { get; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ namespace EasyAbp.Abp.WeChat.Pay.Services
/// </summary>
public abstract class WeChatPayServiceBase : IAbpWeChatPayService
{
public string MchId => Options.MchId;

protected IAbpLazyServiceProvider LazyServiceProvider { get; set; }

protected AbpWeChatPayOptions Options { get; }
Expand Down