mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
# 2022-03-14
### 1.3.9 开源社区版: 【修复】修复BaseRepository数据交互层仓储SqlWith.NoLock使用方式异常的问题。 ### 0.2.8 专业版: 【新增】增加日历签到功能。实现通过日历签到获得积分,余额。【非破坏性无缝增加功能】 【新增】增加“连续签到周期”定时任务,用于根据后台的设置,实时重置清零用户连续签到计数。 【修复】修复BaseRepository数据交互层仓储SqlWith.NoLock使用方式异常的问题。
This commit is contained in:
@@ -10,7 +10,7 @@ namespace CoreCms.Net.Configuration
|
||||
/// <summary>
|
||||
/// 配置文件格式化
|
||||
/// </summary>
|
||||
public class AppSettingsConstVars
|
||||
public static class AppSettingsConstVars
|
||||
{
|
||||
|
||||
#region 全局地址================================================================================
|
||||
@@ -24,6 +24,7 @@ namespace CoreCms.Net.Configuration
|
||||
public static readonly string AppConfigAppInterFaceUrl = AppSettingsHelper.GetContent("AppConfig", "AppInterFaceUrl");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 数据库================================================================================
|
||||
/// <summary>
|
||||
/// 获取数据库连接字符串
|
||||
@@ -35,6 +36,7 @@ namespace CoreCms.Net.Configuration
|
||||
public static readonly string DbDbType = AppSettingsHelper.GetContent("ConnectionStrings", "DbType");
|
||||
#endregion
|
||||
|
||||
|
||||
#region redis================================================================================
|
||||
|
||||
/// <summary>
|
||||
@@ -53,6 +55,7 @@ namespace CoreCms.Net.Configuration
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region AOP================================================================================
|
||||
/// <summary>
|
||||
/// 事务切面开关
|
||||
@@ -68,12 +71,14 @@ namespace CoreCms.Net.Configuration
|
||||
public static readonly string JwtConfigAudience = AppSettingsHelper.GetContent("JwtConfig", "Audience");
|
||||
#endregion
|
||||
|
||||
|
||||
#region Cors跨域设置================================================================================
|
||||
public static readonly string CorsPolicyName = AppSettingsHelper.GetContent("Cors", "PolicyName");
|
||||
public static readonly bool CorsEnableAllIPs = AppSettingsHelper.GetContent("Cors", "EnableAllIPs").ObjToBool();
|
||||
public static readonly string CorsIPs = AppSettingsHelper.GetContent("Cors", "IPs");
|
||||
#endregion
|
||||
|
||||
|
||||
#region Middleware中间件================================================================================
|
||||
/// <summary>
|
||||
/// Ip限流
|
||||
@@ -114,6 +119,7 @@ namespace CoreCms.Net.Configuration
|
||||
public static readonly string PayCallBackAlipayRefundUrl = AppSettingsHelper.GetContent("PayCallBack", "AlipayRefundUrl");
|
||||
#endregion
|
||||
|
||||
|
||||
#region 易联云打印机================================================================================
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -284,6 +284,9 @@
|
||||
public const string CacheWeChatTransactionComponentGood = "CacheWeChatTransactionComponentGood";
|
||||
public const string CacheWeChatTransactionComponentDeliveryCompany = "CacheWeChatTransactionComponentDeliveryCompany";
|
||||
public const string CacheCoreCmsOrderDistributionModel = "CacheCoreCmsOrderDistributionModel";
|
||||
public const string CacheCoreCmsContinuousCheckInRuleDetails = "CacheCoreCmsContinuousCheckInRuleDetails";
|
||||
public const string CacheCoreCmsContinuousCheckInRules = "CacheCoreCmsContinuousCheckInRules";
|
||||
public const string CacheCoreCmsCumulativeCheckInRules = "CacheCoreCmsCumulativeCheckInRules";
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -216,6 +216,11 @@ namespace CoreCms.Net.Configuration
|
||||
/// </summary>
|
||||
[Description("代理商提成")]
|
||||
Agent = 9,
|
||||
/// <summary>
|
||||
/// 日历签到
|
||||
/// </summary>
|
||||
[Description("日历签到")]
|
||||
CheckIn = 10,
|
||||
}
|
||||
/// <summary>
|
||||
/// 用户积分变动来源类型
|
||||
@@ -2880,5 +2885,28 @@ namespace CoreCms.Net.Configuration
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 日历签到
|
||||
|
||||
/// <summary>
|
||||
/// 每天签到赠送-签到赠送类型
|
||||
/// </summary>
|
||||
|
||||
public enum CheckInCommonType
|
||||
{
|
||||
积分 = 1,
|
||||
余额 = 2
|
||||
}
|
||||
/// <summary>
|
||||
/// 清除连续签到次数
|
||||
/// </summary>
|
||||
public enum ContinuousCheckInPeriodType
|
||||
{
|
||||
不限 = 0,
|
||||
每周末 = 1,
|
||||
每月末 = 2
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -779,5 +779,40 @@ namespace CoreCms.Net.Configuration
|
||||
public static readonly string IntraCityServiceBy20KM = "intraCityServiceBy20KM";
|
||||
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 是否开启签到
|
||||
/// </summary>
|
||||
public static readonly string CheckInIsOpen = "checkInIsOpen";
|
||||
|
||||
/// <summary>
|
||||
/// 是否签到提醒
|
||||
/// </summary>
|
||||
public static readonly string CheckInIsAlert = "checkInIsAlert";
|
||||
|
||||
/// <summary>
|
||||
/// 签到提醒时间
|
||||
/// </summary>
|
||||
public static readonly string CheckInAlertTime = "checkInAlertTime";
|
||||
|
||||
/// <summary>
|
||||
/// 普通签到赠送
|
||||
/// </summary>
|
||||
public static readonly string CheckInCommonNum = "checkInCommonNum";
|
||||
|
||||
/// <summary>
|
||||
/// 普通签到赠送类型
|
||||
/// </summary>
|
||||
public static readonly string CheckInCommonType = "checkInCommonType";
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 连续签到周期
|
||||
/// </summary>
|
||||
public static readonly string ContinuousCheckInPeriodType = "continuousCheckInPeriodType";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -226,6 +226,13 @@ namespace CoreCms.Net.Configuration
|
||||
di.Add(SystemSettingConstVars.IntraCityServiceBy15KM, new DictionaryKeyValues() { sKey = "15公里内", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.IntraCityServiceBy20KM, new DictionaryKeyValues() { sKey = "20公里内", sValue = "0" });
|
||||
|
||||
//签到
|
||||
di.Add(SystemSettingConstVars.CheckInIsOpen, new DictionaryKeyValues() { sKey = "是否开启签到", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.CheckInIsAlert, new DictionaryKeyValues() { sKey = "是否签到提醒", sValue = "1" });
|
||||
di.Add(SystemSettingConstVars.CheckInAlertTime, new DictionaryKeyValues() { sKey = "签到提醒时间", sValue = "08:00:00" });
|
||||
di.Add(SystemSettingConstVars.CheckInCommonNum, new DictionaryKeyValues() { sKey = "签到赠送", sValue = "0" });
|
||||
di.Add(SystemSettingConstVars.CheckInCommonType, new DictionaryKeyValues() { sKey = "签到赠送类型", sValue = GlobalEnumVars.CheckInCommonType.积分.ToString() });
|
||||
di.Add(SystemSettingConstVars.ContinuousCheckInPeriodType, new DictionaryKeyValues() { sKey = "连续签到周期", sValue = GlobalEnumVars.ContinuousCheckInPeriodType.不限.ToString() });
|
||||
|
||||
return di;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user