fix: 体验会员分红计入管事当日收益统计
This commit is contained in:
1 parent
73fd62c142
commit
9b21bb0860
1 file changed
+5
-3
@@ -6,6 +6,7 @@
|
||||
- formal_cishu=1:duoci_fenhong 或 club 默认正式分成。
|
||||
- formal_cishu>=2:仅 duoci_fenhong;无配置则不分。
|
||||
- 体验单:固定 trial_guanshifc / trial_zuzhangfc;终身仅可购 1 次。
|
||||
- 体验单分红计入管事/组长当日收益(与正式首充同一日表口径,不进续费日表)。
|
||||
- 积分:首次充值会员(体验/正式均可)加满至 10;此后任意会员充值不再加分。
|
||||
- 履约(回调/轮询/余额)均二次校验体验资格;分红失败回滚事务。
|
||||
|
||||
@@ -640,11 +641,12 @@ def _apply_member_fenhong(order, huiyuan, formal_cishu=None, trial_guanshi_fc=No
|
||||
is_trial=is_trial_order,
|
||||
)
|
||||
|
||||
if guanshi_fenhong > 0 and not is_trial_order and cishu is not None:
|
||||
if guanshi_fenhong > 0:
|
||||
try:
|
||||
if cishu == 1:
|
||||
# 体验 / 正式首充 → 当日充值统计;正式二次及以上 → 续费日表
|
||||
if is_trial_order or cishu == 1:
|
||||
update_guanshi_daily_by_action(yonghuid=guanshi_id, action=2, amount=guanshi_fenhong)
|
||||
else:
|
||||
elif cishu is not None:
|
||||
update_guanshi_xufei_daily(yonghuid=guanshi_id, xufei_jine=guanshi_fenhong)
|
||||
except Exception as exc:
|
||||
logger.error('管事日统计更新失败: %s', exc)
|
||||
|
||||
Reference in new issue
Block a user