|
|
@ -20,6 +20,12 @@ namespace Volo.Abp.Sms.Aliyun |
|
|
{ |
|
|
{ |
|
|
var config = _configuration.GetSection("AbpAliyunSms"); |
|
|
var config = _configuration.GetSection("AbpAliyunSms"); |
|
|
|
|
|
|
|
|
|
|
|
// Please fill in the real parameters in the appsettings.json file.
|
|
|
|
|
|
if (config["AccessKeyId"] == "<Enter your AccessKeyId from Aliyun>") |
|
|
|
|
|
{ |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
var msg = new SmsMessage(config["TargetPhoneNumber"], |
|
|
var msg = new SmsMessage(config["TargetPhoneNumber"], |
|
|
config["TemplateParam"]); |
|
|
config["TemplateParam"]); |
|
|
msg.Properties.Add("SignName", config["SignName"]); |
|
|
msg.Properties.Add("SignName", config["SignName"]); |
|
|
|