feat(fsgx): 完善报单佣金与积分奖励落库链路

放宽报单/人人分销场景下的推广员校验,确保订单返现佣金可落库;并将直推/伞下积分奖励补充写入 user_bill 明细,支持后台页面可见与审计追踪,同时更新对应 PRD 和问题记录。

Made-with: Cursor
This commit is contained in:
apple
2026-03-24 20:10:42 +08:00
parent c2420e7393
commit a41e0ab0f7
6 changed files with 76 additions and 17 deletions

View File

@@ -222,6 +222,23 @@ class UserBillServices extends BaseServices
'status' => 1,
'pm' => 1
],
// fsgx PRD §3.3:报单直推/伞下待释放积分明细(不计入可消费积分汇总)
'hjf_reward_direct_integral' => [
'title' => '直推积分奖励',
'category' => 'integral',
'type' => 'hjf_frozen_direct',
'mark' => '待释放积分{%num%}点',
'status' => 0,
'pm' => 1
],
'hjf_reward_umbrella_integral' => [
'title' => '伞下积分奖励',
'category' => 'integral',
'type' => 'hjf_frozen_umbrella',
'mark' => '待释放积分{%num%}点',
'status' => 0,
'pm' => 1
],
];
/**
@@ -566,6 +583,10 @@ class UserBillServices extends BaseServices
'integral_refund',
'order_integral_refund',
'pay_product_integral_back',
'frozen_points_brokerage',
'frozen_points_release',
'hjf_frozen_direct',
'hjf_frozen_umbrella',
]]));
$where_data['type'] = 'sign';
$data['CountSign'] = $this->dao->getUserSignPoint($where_data);