后端【优化】: 用户如果自主注册,将无上级,特后台增加开关,可控制此类用户二次扫码别人的分享海报,是否可以继续进行上下级关联推送。前端已同步更新此功能。

This commit is contained in:
大灰灰
2024-10-31 12:46:54 +08:00
parent a6b0c9e7a2
commit 0a4efbb7f1
4 changed files with 21 additions and 5 deletions

View File

@@ -598,6 +598,10 @@ namespace CoreCms.Net.Configuration
/// </summary>
public const string AllowAddressToUseMap = "allowAddressToUseMap";
/// <summary>
/// 是否允许自己注册的用户二次扫码绑定上级
/// </summary>
public const string IsAllowUserSecondBind = "isAllowUserSecondBind";
/// <summary>
/// 显示首页弹窗

View File

@@ -66,6 +66,8 @@ namespace CoreCms.Net.Configuration
di.Add(SystemSettingConstVars.ShowCustomForm, new DictionaryKeyValues() { sKey = "显示自定义表单按钮", sValue = "2" });
di.Add(SystemSettingConstVars.AllowAddressToUseMap, new DictionaryKeyValues() { sKey = "用户地址开启坐标", sValue = "1" });
di.Add(SystemSettingConstVars.IsAllowUserSecondBind, new DictionaryKeyValues() { sKey = "已注册用户扫码绑定", sValue = "1" });
di.Add(SystemSettingConstVars.ShowIndexPopupWindow, new DictionaryKeyValues() { sKey = "显示首页弹窗", sValue = "2" });
di.Add(SystemSettingConstVars.IndexPopupWindowImageUrl, new DictionaryKeyValues() { sKey = "图片地址", sValue = "" });
di.Add(SystemSettingConstVars.IndexPopupWindowHrefUrl, new DictionaryKeyValues() { sKey = "链接地址", sValue = "" });

View File

@@ -58,32 +58,40 @@
</blockquote>
<div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['showStoresSwitch']['sKey']}}</label>
<div class="layui-input-inline layui-inline-7">
<div class="layui-input-inline layui-inline-4">
<input type="radio" lay-filter="showStoresSwitch" name="showStoresSwitch" value="1" title="开启" {{d.data.configs['showStoresSwitch']['sValue']==="1" ? 'checked':''}}>
<input type="radio" lay-filter="showStoresSwitch" name="showStoresSwitch" value="2" title="不开启" {{d.data.configs['showStoresSwitch']['sValue']==="2" ? 'checked':''}}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['showStoreBalanceRechargeSwitch']['sKey']}}</label>
<div class="layui-input-inline layui-inline-7">
<div class="layui-input-inline layui-inline-4">
<input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="1" title="开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="1" ? 'checked':''}}>
<input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="2" title="不开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="2" ? 'checked':''}}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['isAllowWithdrawCash']['sKey']}}</label>
<div class="layui-input-inline layui-inline-7">
<div class="layui-input-inline layui-inline-4">
<input type="radio" lay-filter="isAllowWithdrawCash" name="isAllowWithdrawCash" value="1" title="开启" {{d.data.configs['isAllowWithdrawCash']['sValue']==="1" ? 'checked':''}}>
<input type="radio" lay-filter="isAllowWithdrawCash" name="isAllowWithdrawCash" value="2" title="不开启" {{d.data.configs['isAllowWithdrawCash']['sValue']==="2" ? 'checked':''}}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['allowAddressToUseMap']['sKey']}}</label>
<div class="layui-input-inline layui-inline-7">
<div class="layui-input-inline layui-inline-4">
<input type="radio" lay-filter="allowAddressToUseMap" name="allowAddressToUseMap" value="1" title="开启" {{d.data.configs['allowAddressToUseMap']['sValue']==="1" ? 'checked':''}}>
<input type="radio" lay-filter="allowAddressToUseMap" name="allowAddressToUseMap" value="2" title="不开启" {{d.data.configs['allowAddressToUseMap']['sValue']==="2" ? 'checked':''}}>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">{{d.data.configs['isAllowUserSecondBind']['sKey']}}</label>
<div class="layui-input-inline layui-inline-4">
<input type="radio" lay-filter="isAllowUserSecondBind" name="isAllowUserSecondBind" value="1" title="开启" {{d.data.configs['isAllowUserSecondBind']['sValue']==="1" ? 'checked':''}}>
<input type="radio" lay-filter="isAllowUserSecondBind" name="isAllowUserSecondBind" value="2" title="不开启" {{d.data.configs['isAllowUserSecondBind']['sValue']==="2" ? 'checked':''}}>
</div>
<div class="layui-form-mid layui-word-aux">当用户是自己注册的那么是没有上级的可以通过此开关控制这类用户是否二次扫码上级分享海报实现与上级绑定注意已经有上级的此设置不生效</div>
</div>
<blockquote class="layui-elem-quote">
控制首页是否弹出弹窗广告
</blockquote>

View File

@@ -188,6 +188,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
var checkInIsOpen = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.CheckInIsOpen).ObjectToInt(2); //订单取消时间
var isAllowUserSecondBind = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.IsAllowUserSecondBind).ObjectToInt(2); //订单取消时间
var model = new
@@ -256,7 +257,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
indexPopupWindowHrefUrl,
showCustomForm,
showLiveBroadCast,
allowAddressToUseMap
allowAddressToUseMap,
isAllowUserSecondBind
};
jm.data = model;
return jm;