mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:03:27 +08:00
完成阿里云短信功能并进行测试
This commit is contained in:
@@ -1632,6 +1632,25 @@ namespace CoreCms.Net.Configuration
|
||||
|
||||
#region 短信相关=====================================================
|
||||
|
||||
/// <summary>
|
||||
/// 短信发送平台
|
||||
/// </summary>
|
||||
public enum SmsType
|
||||
{
|
||||
/// <summary>
|
||||
/// 凯信通
|
||||
/// </summary>
|
||||
[Description("凯信通")]
|
||||
KingTto = 1,
|
||||
/// <summary>
|
||||
/// 阿里云
|
||||
/// </summary>
|
||||
[Description("阿里云")]
|
||||
AliYun = 2,
|
||||
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 短信消息分类
|
||||
/// </summary>
|
||||
@@ -3340,5 +3359,35 @@ namespace CoreCms.Net.Configuration
|
||||
|
||||
#endregion
|
||||
|
||||
#region 抽奖活动
|
||||
|
||||
/// <summary>
|
||||
/// 抽奖活动类型
|
||||
/// </summary>
|
||||
public enum LuckyType
|
||||
{
|
||||
/// <summary>
|
||||
/// 大转盘
|
||||
/// </summary>
|
||||
[Description("大转盘")]
|
||||
LuckyWheel = 1,
|
||||
|
||||
/// <summary>
|
||||
/// 九宫格
|
||||
/// </summary>
|
||||
[Description("九宫格")]
|
||||
LuckyGrid = 2,
|
||||
|
||||
/// <summary>
|
||||
/// 老虎机
|
||||
/// </summary>
|
||||
[Description("老虎机")]
|
||||
SlotMachine = 3
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -628,6 +628,12 @@ namespace CoreCms.Net.Configuration
|
||||
/// 是否开启短信
|
||||
/// </summary>
|
||||
public const string SmsEnabled = "smsEnabled";
|
||||
|
||||
/// <summary>
|
||||
/// 短信类型
|
||||
/// </summary>
|
||||
public const string SmsType = "smsType";
|
||||
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
@@ -664,62 +670,126 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
public const string SmsIpSendBlackList = "smsIpSendBlackList";
|
||||
|
||||
#region 凯信通短信常量
|
||||
|
||||
/// <summary>
|
||||
/// 账户注册-短信内容模板
|
||||
/// 凯信通-账户注册-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForReg = "smsTplForReg";
|
||||
|
||||
/// <summary>
|
||||
/// 账户登录-短信内容模板
|
||||
/// 凯信通-账户登录-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForLogin = "smsTplForLogin";
|
||||
|
||||
/// <summary>
|
||||
/// 验证验证码-短信内容模板
|
||||
/// 凯信通-验证验证码-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForVeri = "smsTplForVeri";
|
||||
|
||||
/// <summary>
|
||||
/// 下单成功时-短信内容模板
|
||||
/// 凯信通-下单成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForCreateOrder = "smsTplForCreateOrder";
|
||||
|
||||
/// <summary>
|
||||
/// 订单支付成功时-短信内容模板
|
||||
/// 凯信通-订单支付成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForOrderPayed = "smsTplForOrderPayed";
|
||||
|
||||
/// <summary>
|
||||
/// 订单催付提醒-短信内容模板
|
||||
/// 凯信通-订单催付提醒-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForRemindOrderPay = "smsTplForRemindOrderPay";
|
||||
|
||||
/// <summary>
|
||||
/// 订单发货通知-短信内容模板
|
||||
/// 凯信通-订单发货通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForDeliveryNotice = "smsTplForDeliveryNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 售后确认通过-短信内容模板
|
||||
/// 凯信通-售后确认通过-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForAfterSalesPass = "smsTplForAfterSalesPass";
|
||||
|
||||
/// <summary>
|
||||
/// 用户退款成功通知-短信内容模板
|
||||
/// 凯信通-用户退款成功通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForRefundSuccess = "smsTplForRefundSuccess";
|
||||
|
||||
/// <summary>
|
||||
/// 订单付款成功平台通知-短信内容模板
|
||||
/// 凯信通-订单付款成功平台通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForSellerOrderNotice = "smsTplForSellerOrderNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 通用类型-短信内容模板
|
||||
/// 凯信通-通用类型-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsTplForCommon = "smsTplForCommon";
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 阿里云短信常量
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-账户注册-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForReg = "smsAliYunTplForReg";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-账户登录-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForLogin = "smsAliYunTplForLogin";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-验证验证码-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForVeri = "smsAliYunTplForVeri";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-下单成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForCreateOrder = "smsAliYunTplForCreateOrder";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-订单支付成功时-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForOrderPayed = "smsAliYunTplForOrderPayed";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-订单催付提醒-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForRemindOrderPay = "smsAliYunTplForRemindOrderPay";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-订单发货通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForDeliveryNotice = "smsAliYunTplForDeliveryNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-售后确认通过-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForAfterSalesPass = "smsAliYunTplForAfterSalesPass";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-用户退款成功通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForRefundSuccess = "smsAliYunTplForRefundSuccess";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-订单付款成功平台通知-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForSellerOrderNotice = "smsAliYunTplForSellerOrderNotice";
|
||||
|
||||
/// <summary>
|
||||
/// 阿里云-通用类型-短信内容模板
|
||||
/// </summary>
|
||||
public const string SmsAliYunTplForCommon = "smsAliYunTplForCommon";
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
//网络打印机============================================================================
|
||||
/// <summary>
|
||||
/// 是否开启
|
||||
|
||||
@@ -208,11 +208,14 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.ShowApiAppid, new DictionaryKeyValues() { sKey = "AppId", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.ShowApiSecret, new DictionaryKeyValues() { sKey = "授权Secret", sValue = "" });
|
||||
|
||||
//凯信通短信设置
|
||||
//短信通用设置
|
||||
di.Add(SystemSettingConstVars.SmsEnabled, new DictionaryKeyValues() { sKey = "是否开启短信", sValue = "1" });
|
||||
// 1凯信通 2阿里云
|
||||
di.Add(SystemSettingConstVars.SmsType, new DictionaryKeyValues() { sKey = "短信类型", sValue = "1" });
|
||||
|
||||
di.Add(SystemSettingConstVars.SmsUserId, new DictionaryKeyValues() { sKey = "用户ID", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAccount, new DictionaryKeyValues() { sKey = "账号", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsPassword, new DictionaryKeyValues() { sKey = "密码", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAccount, new DictionaryKeyValues() { sKey = "账号(AppKey)", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsPassword, new DictionaryKeyValues() { sKey = "密码(AppSecret)", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsApiUrl, new DictionaryKeyValues() { sKey = "Api地址", sValue = "http://sms.corecms.net:9999/sms.aspx" });
|
||||
di.Add(SystemSettingConstVars.SmsSignature, new DictionaryKeyValues() { sKey = "短信签名", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsIpSendNumber, new DictionaryKeyValues() { sKey = "单Ip每日发送量", sValue = "20" });
|
||||
@@ -235,7 +238,7 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.FilesStorageAliYunBucketName, new DictionaryKeyValues() { sKey = "阿里云桶名称", sValue = "CoreShop" });
|
||||
di.Add(SystemSettingConstVars.FilesStorageQiNiuBucketName, new DictionaryKeyValues() { sKey = "七牛云桶名称", sValue = "CoreShop" });
|
||||
|
||||
//短信发送内容模板
|
||||
//凯信通短信发送内容模板
|
||||
di.Add(SystemSettingConstVars.SmsTplForReg, new DictionaryKeyValues() { sKey = "账户注册", sValue = "您正在注册账号,验证码是{code},请勿告诉他人。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForLogin, new DictionaryKeyValues() { sKey = "账户登录", sValue = "您正在登陆账号,验证码是{code},请勿告诉他人。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForVeri, new DictionaryKeyValues() { sKey = "验证验证码", sValue = "您的验证码是{code},请勿告诉他人。" });
|
||||
@@ -248,6 +251,18 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.SmsTplForSellerOrderNotice, new DictionaryKeyValues() { sKey = "订单付款成功平台通知", sValue = "您有新的订单了,请及时处理。" });
|
||||
di.Add(SystemSettingConstVars.SmsTplForCommon, new DictionaryKeyValues() { sKey = "通用类型", sValue = "欢迎您访问我们的微信小程序,有问题请联系客服。" });
|
||||
|
||||
//阿里云短信发送内容模板
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForReg, new DictionaryKeyValues() { sKey = "账户注册", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForLogin, new DictionaryKeyValues() { sKey = "账户登录", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForVeri, new DictionaryKeyValues() { sKey = "验证验证码", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForCreateOrder, new DictionaryKeyValues() { sKey = "下单成功时", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForOrderPayed, new DictionaryKeyValues() { sKey = "订单支付成功时", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForRemindOrderPay, new DictionaryKeyValues() { sKey = "订单催付提醒", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForDeliveryNotice, new DictionaryKeyValues() { sKey = "订单发货通知", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForAfterSalesPass, new DictionaryKeyValues() { sKey = "售后确认通过", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForRefundSuccess, new DictionaryKeyValues() { sKey = "用户退款成功通知", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForSellerOrderNotice, new DictionaryKeyValues() { sKey = "订单付款成功平台通知", sValue = "" });
|
||||
di.Add(SystemSettingConstVars.SmsAliYunTplForCommon, new DictionaryKeyValues() { sKey = "通用类型", sValue = "" });
|
||||
|
||||
//自提运费设置
|
||||
di.Add(SystemSettingConstVars.IntraCityServiceBy2KM, new DictionaryKeyValues() { sKey = "2公里内", sValue = "0" });
|
||||
|
||||
Reference in New Issue
Block a user