diff --git a/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/ISmsSender.cs b/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/ISmsSender.cs index 9031465033..c72a5013cd 100644 --- a/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/ISmsSender.cs +++ b/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/ISmsSender.cs @@ -4,6 +4,6 @@ namespace Volo.Abp.Sms { public interface ISmsSender { - Task SendAsync(string text); + Task SendAsync(string phoneNumber, string text); } } diff --git a/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/NullSmsSender.cs b/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/NullSmsSender.cs index 643ba50c23..0b3c8879e4 100644 --- a/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/NullSmsSender.cs +++ b/framework/src/Volo.Abp.Sms/Volo/Abp/Sms/NullSmsSender.cs @@ -14,10 +14,12 @@ namespace Volo.Abp.Sms Logger = NullLogger.Instance; } - public Task SendAsync(string text) + public Task SendAsync(string phoneNumber, string text) { Logger.LogWarning($"SMS Sending was not implemented! Using {nameof(NullSmsSender)}:"); - Logger.LogWarning("SMS Text: " + text); + Logger.LogWarning("Phone Number : " + phoneNumber); + Logger.LogWarning("SMS Text : " + text); + return Task.CompletedTask; } }