mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:03:25 +08:00
【新增】短信功能增加【单IP每日发送量】限制,增加【IP白名单】【IP黑名单】功能,减少可能存在的恶意请求发送申请。
This commit is contained in:
@@ -645,6 +645,20 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
public const string SmsSignature = "smsSignature";
|
||||
|
||||
/// <summary>
|
||||
/// 短信单ip每日发送量
|
||||
/// </summary>
|
||||
public const string SmsIpSendNumber = "smsIpSendNumber";
|
||||
|
||||
/// <summary>
|
||||
/// 短信发送IP白名单
|
||||
/// </summary>
|
||||
public const string SmsIpSendWhiteList= "smsIpSendWhiteList";
|
||||
|
||||
/// <summary>
|
||||
/// 短信发送IP黑名单
|
||||
/// </summary>
|
||||
public const string SmsIpSendBlackList = "smsIpSendBlackList";
|
||||
|
||||
/// <summary>
|
||||
/// 账户注册-短信内容模板
|
||||
|
||||
@@ -214,6 +214,9 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.SmsPassword, new DictionaryKeyValues() { sKey = "密码", 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" });
|
||||
di.Add(SystemSettingConstVars.SmsIpSendWhiteList, new DictionaryKeyValues() { sKey = "发送IP白名单", sValue = "127.0.0.1|192.168.1.1|192.168.0.1" });
|
||||
di.Add(SystemSettingConstVars.SmsIpSendBlackList, new DictionaryKeyValues() { sKey = "发送IP黑名单", sValue = "8.8.8.8|2.2.2.2" });
|
||||
|
||||
//附件存储
|
||||
di.Add(SystemSettingConstVars.FilesStorageType, new DictionaryKeyValues() { sKey = "存储方式", sValue = "LocalStorage" });
|
||||
|
||||
Reference in New Issue
Block a user