【新增】新增新人注册可以自动识别并发放优惠券。

This commit is contained in:
jianweie code
2023-11-20 00:16:14 +08:00
parent d6c6d1f63b
commit 96ffffb664
8 changed files with 146 additions and 26 deletions

View File

@@ -898,6 +898,22 @@ namespace CoreCms.Net.Configuration
/// </summary>
public static readonly string ShowLiveBroadCast = "showLiveBroadCast";
/// <summary>
/// 是否开启赠送优惠券
/// </summary>
public static readonly string IsAllowGiveCoupon = "isAllowGiveCoupon";
/// <summary>
/// 选择注册赠送优惠券
/// </summary>
public static readonly string SelectGiveCoupon = "selectGiveCoupon";
/// <summary>
/// 赠送数量
/// </summary>
public static readonly string GiveCouponNumber = "giveCouponNumber";
}

View File

@@ -45,6 +45,11 @@ namespace CoreCms.Net.Configuration
di.Add(SystemSettingConstVars.PrivacyPolicyId, new DictionaryKeyValues() { sKey = "隐私政策", sValue = "4" });
di.Add(SystemSettingConstVars.PrivacyPolicy, new DictionaryKeyValues() { sKey = "隐私政策", sValue = "" });
//开启赠送新人优惠券
di.Add(SystemSettingConstVars.IsAllowGiveCoupon, new DictionaryKeyValues() { sKey = "是否赠送新人优惠券", sValue = "2" });
di.Add(SystemSettingConstVars.SelectGiveCoupon, new DictionaryKeyValues() { sKey = "选择注册赠送优惠券", sValue = "0" });
di.Add(SystemSettingConstVars.GiveCouponNumber, new DictionaryKeyValues() { sKey = "赠送优惠券数量", sValue = "1" });
//开关功能
di.Add(SystemSettingConstVars.ShowStoreBalanceRechargeSwitch, new DictionaryKeyValues() { sKey = "显示充值功能", sValue = "2" });
di.Add(SystemSettingConstVars.IsAllowWithdrawCash, new DictionaryKeyValues() { sKey = "是否允许提现", sValue = "2" });