You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1005 B
1005 B
LINGYUN.Abp.Sms.Aliyun
abp框架短信发送接口ISmsSender的阿里云实现
配置使用
模块按需引用,需要引用阿里云公共基础认证模块
事先定义appsettings.json文件
{
"Aliyun": {
"Auth": {
"AccessKeyId": "你的阿里云访问标识",
"AccessKeySecret": "你的阿里云访问密钥"
},
"Sms": {
"RegionId": "cn-hangzhou",
"Domain": "dysmsapi.aliyuncs.com",
"Version": "2017-05-25",
"DefaultSignName": "你的阿里云短信签名,SmsMessage.Properties[SignName]不存在则使用DefaultSignName",
"DefaultTemplateCode": "你的阿里云短信模板,SmsMessage.Properties[TemplateCode]不存在则使用DefaultTemplateCode",
"DeveloperPhoneNumber": "这是用于在开发模式下的短信号码,用于统一接收短信",
"VisableErrorToClient": true
}
}
}
[DependsOn(typeof(AbpAliyunSmsModule))]
public class YouProjectModule : AbpModule
{
// other
}