mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 20:13:26 +08:00
【修复】修复后台设置注册成为分销商,但是实际注册需要上级推广的情况,改为注册既成功成为分销商。
This commit is contained in:
@@ -694,7 +694,9 @@ public class CoreCmsUserServices : BaseServices<CoreCmsUser>, ICoreCmsUserServic
|
|||||||
return jm;
|
return jm;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userId > 0 && entity.invitecode > 0 && userInfo.parentId > 0)
|
if (userId > 0)
|
||||||
|
{
|
||||||
|
if (entity.invitecode > 0 && userInfo.parentId > 0)
|
||||||
{
|
{
|
||||||
var inviterUserIntegral = CommonHelper
|
var inviterUserIntegral = CommonHelper
|
||||||
.GetConfigDictionary(allConfigs, SystemSettingConstVars.InviterUserIntegral)
|
.GetConfigDictionary(allConfigs, SystemSettingConstVars.InviterUserIntegral)
|
||||||
@@ -702,6 +704,7 @@ public class CoreCmsUserServices : BaseServices<CoreCmsUser>, ICoreCmsUserServic
|
|||||||
if (inviterUserIntegral > 0)
|
if (inviterUserIntegral > 0)
|
||||||
await _userPointLogServices.SetPoint(userInfo.parentId, inviterUserIntegral,
|
await _userPointLogServices.SetPoint(userInfo.parentId, inviterUserIntegral,
|
||||||
(int)GlobalEnumVars.UserPointSourceTypes.PointTypeInviterUser, "发展用户:" + userId + "赠送积分");
|
(int)GlobalEnumVars.UserPointSourceTypes.PointTypeInviterUser, "发展用户:" + userId + "赠送积分");
|
||||||
|
}
|
||||||
|
|
||||||
//是否默认注册分销商
|
//是否默认注册分销商
|
||||||
var distributionType = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.DistributionType).ObjectToInt(); //是否默认注册分销商
|
var distributionType = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.DistributionType).ObjectToInt(); //是否默认注册分销商
|
||||||
@@ -727,7 +730,6 @@ public class CoreCmsUserServices : BaseServices<CoreCmsUser>, ICoreCmsUserServic
|
|||||||
|
|
||||||
userInfo = await _dal.QueryByIdAsync(userId);
|
userInfo = await _dal.QueryByIdAsync(userId);
|
||||||
|
|
||||||
|
|
||||||
var isAllowGiveCoupon = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.IsAllowGiveCoupon).ObjectToInt(); //是否赠送新人优惠券
|
var isAllowGiveCoupon = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.IsAllowGiveCoupon).ObjectToInt(); //是否赠送新人优惠券
|
||||||
var selectGiveCoupon = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.SelectGiveCoupon).ObjectToInt(); //选择注册赠送优惠券
|
var selectGiveCoupon = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.SelectGiveCoupon).ObjectToInt(); //选择注册赠送优惠券
|
||||||
var giveCouponNumber = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.GiveCouponNumber).ObjectToInt(); //赠送优惠券数量
|
var giveCouponNumber = CommonHelper.GetConfigDictionary(allConfigs, SystemSettingConstVars.GiveCouponNumber).ObjectToInt(); //赠送优惠券数量
|
||||||
|
|||||||
Reference in New Issue
Block a user