mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2026-02-04 20:59:49 +08:00
后端【优化】: 用户如果自主注册,将无上级,特后台增加开关,可控制此类用户二次扫码别人的分享海报,是否可以继续进行上下级关联推送。前端已同步更新此功能。
This commit is contained in:
@@ -598,6 +598,10 @@ namespace CoreCms.Net.Configuration
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const string AllowAddressToUseMap = "allowAddressToUseMap";
|
public const string AllowAddressToUseMap = "allowAddressToUseMap";
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 是否允许自己注册的用户二次扫码绑定上级
|
||||||
|
/// </summary>
|
||||||
|
public const string IsAllowUserSecondBind = "isAllowUserSecondBind";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示首页弹窗
|
/// 显示首页弹窗
|
||||||
|
|||||||
@@ -66,6 +66,8 @@ namespace CoreCms.Net.Configuration
|
|||||||
di.Add(SystemSettingConstVars.ShowCustomForm, new DictionaryKeyValues() { sKey = "显示自定义表单按钮", sValue = "2" });
|
di.Add(SystemSettingConstVars.ShowCustomForm, new DictionaryKeyValues() { sKey = "显示自定义表单按钮", sValue = "2" });
|
||||||
di.Add(SystemSettingConstVars.AllowAddressToUseMap, new DictionaryKeyValues() { sKey = "用户地址开启坐标", sValue = "1" });
|
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.ShowIndexPopupWindow, new DictionaryKeyValues() { sKey = "显示首页弹窗", sValue = "2" });
|
||||||
di.Add(SystemSettingConstVars.IndexPopupWindowImageUrl, new DictionaryKeyValues() { sKey = "图片地址", sValue = "" });
|
di.Add(SystemSettingConstVars.IndexPopupWindowImageUrl, new DictionaryKeyValues() { sKey = "图片地址", sValue = "" });
|
||||||
di.Add(SystemSettingConstVars.IndexPopupWindowHrefUrl, new DictionaryKeyValues() { sKey = "链接地址", sValue = "" });
|
di.Add(SystemSettingConstVars.IndexPopupWindowHrefUrl, new DictionaryKeyValues() { sKey = "链接地址", sValue = "" });
|
||||||
|
|||||||
@@ -58,32 +58,40 @@
|
|||||||
</blockquote>
|
</blockquote>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">{{d.data.configs['showStoresSwitch']['sKey']}}</label>
|
<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="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':''}}>
|
<input type="radio" lay-filter="showStoresSwitch" name="showStoresSwitch" value="2" title="不开启" {{d.data.configs['showStoresSwitch']['sValue']==="2" ? 'checked':''}}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">{{d.data.configs['showStoreBalanceRechargeSwitch']['sKey']}}</label>
|
<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="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':''}}>
|
<input type="radio" lay-filter="showStoreBalanceRechargeSwitch" name="showStoreBalanceRechargeSwitch" value="2" title="不开启" {{d.data.configs['showStoreBalanceRechargeSwitch']['sValue']==="2" ? 'checked':''}}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">{{d.data.configs['isAllowWithdrawCash']['sKey']}}</label>
|
<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="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':''}}>
|
<input type="radio" lay-filter="isAllowWithdrawCash" name="isAllowWithdrawCash" value="2" title="不开启" {{d.data.configs['isAllowWithdrawCash']['sValue']==="2" ? 'checked':''}}>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="layui-form-item">
|
<div class="layui-form-item">
|
||||||
<label class="layui-form-label">{{d.data.configs['allowAddressToUseMap']['sKey']}}</label>
|
<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="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':''}}>
|
<input type="radio" lay-filter="allowAddressToUseMap" name="allowAddressToUseMap" value="2" title="不开启" {{d.data.configs['allowAddressToUseMap']['sValue']==="2" ? 'checked':''}}>
|
||||||
</div>
|
</div>
|
||||||
</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 class="layui-elem-quote">
|
||||||
控制首页是否弹出弹窗广告
|
控制首页是否弹出弹窗广告
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|||||||
@@ -188,6 +188,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
|||||||
|
|
||||||
|
|
||||||
var checkInIsOpen = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.CheckInIsOpen).ObjectToInt(2); //订单取消时间
|
var checkInIsOpen = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.CheckInIsOpen).ObjectToInt(2); //订单取消时间
|
||||||
|
var isAllowUserSecondBind = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.IsAllowUserSecondBind).ObjectToInt(2); //订单取消时间
|
||||||
|
|
||||||
|
|
||||||
var model = new
|
var model = new
|
||||||
@@ -256,7 +257,8 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
|||||||
indexPopupWindowHrefUrl,
|
indexPopupWindowHrefUrl,
|
||||||
showCustomForm,
|
showCustomForm,
|
||||||
showLiveBroadCast,
|
showLiveBroadCast,
|
||||||
allowAddressToUseMap
|
allowAddressToUseMap,
|
||||||
|
isAllowUserSecondBind
|
||||||
};
|
};
|
||||||
jm.data = model;
|
jm.data = model;
|
||||||
return jm;
|
return jm;
|
||||||
|
|||||||
Reference in New Issue
Block a user