feat(hjf): 伞下积分奖励开关、隐藏会员码、资产与排队页跳转及样式

- 后台排队配置:伞下积分奖励开关及 API
- PointsRewardServices:仅对 depth>0 祖先应用伞下开关,直推逻辑不变
- 会员模板隐藏会员码;资产页积分明细跳转与背景/渐变
- 排队状态页链接参数与样式对齐;移除误提交 pro_v3.5.1_副本 全量副本

Made-with: Cursor
This commit is contained in:
apple
2026-03-31 09:40:34 +08:00
parent cfe023aa2a
commit b39f5dfe58
13044 changed files with 84 additions and 2000587 deletions

View File

@@ -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(