feat(hjf): 伞下积分奖励开关、隐藏会员码、资产与排队页跳转及样式
- 后台排队配置:伞下积分奖励开关及 API - PointsRewardServices:仅对 depth>0 祖先应用伞下开关,直推逻辑不变 - 会员模板隐藏会员码;资产页积分明细跳转与背景/渐变 - 排队状态页链接参数与样式对齐;移除误提交 pro_v3.5.1_副本 全量副本 Made-with: Cursor
This commit is contained in:
@@ -127,7 +127,13 @@ class PointsRewardServices extends BaseServices
|
||||
$directReward = $this->agentLevelServices->getDirectRewardPoints($agentLevelId);
|
||||
|
||||
// 级差:本节点只拿超出下级已取走部分的差额,再乘以数量
|
||||
$actual = max(0, $directReward - $lowerDirectReward) * $qty;
|
||||
// 间接上级(depth>0,即非直推父节点)受伞下奖励开关控制(hjf_umbrella_reward_enable,默认关闭)
|
||||
if ($depth > 0) {
|
||||
$umbrellaRewardEnable = (int)sys_config('hjf_umbrella_reward_enable', 0);
|
||||
$actual = $umbrellaRewardEnable ? max(0, $directReward - $lowerDirectReward) * $qty : 0;
|
||||
} else {
|
||||
$actual = max(0, $directReward - $lowerDirectReward) * $qty;
|
||||
}
|
||||
|
||||
if ($actual > 0) {
|
||||
$this->grantFrozenPoints(
|
||||
|
||||
Reference in New Issue
Block a user