diff --git a/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts b/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts index 989aca0..43e77bf 100644 --- a/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts +++ b/saiadmin-artd/src/views/plugin/dice/api/lottery_pool_config/index.ts @@ -97,7 +97,7 @@ export default { }, /** - * 获取当前彩金池(Redis 实例化,无则按 type=0 创建),含 profit_amount 实时值 + * 获取当前彩金池(Redis 实例化,无则按 type=0 创建),含玩家累计盈利 profit_amount 实时值 */ getCurrentPool() { return request.get<{ @@ -130,5 +130,14 @@ export default { url: '/core/dice/lottery_pool_config/DiceLotteryPoolConfig/updateCurrentPool', data: params }) + }, + + /** + * 重置当前彩金池的玩家累计盈利(profit_amount 置为 0) + */ + resetProfitAmount() { + return request.post({ + url: '/core/dice/lottery_pool_config/DiceLotteryPoolConfig/resetProfitAmount' + }) } } diff --git a/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/modules/current-pool-dialog.vue b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/modules/current-pool-dialog.vue index 63fe1ad..8a28399 100644 --- a/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/modules/current-pool-dialog.vue +++ b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/modules/current-pool-dialog.vue @@ -16,19 +16,21 @@
- 彩金池盈利(profit_amount): - {{ displayProfitAmount }} + 玩家累计盈利(profit_amount): + {{ + displayProfitAmount + }} 实时
- 计算方式:每局抽奖扣除本局发放成本(普通档位 real_ev + 中大奖时 BIGWIN.real_ev),弹窗打开期间每 2 秒自动刷新 + 计算方式:每局按“当前中奖金额(含超级大奖 BIGWIN)减去抽奖券费用 100”累加,弹窗打开期间每 2 秒自动刷新
抽奖档位规则
- 当彩金池盈利 低于安全线 时,按玩家的 T*_weight 权重抽取抽奖档位; - 当彩金池盈利 高于或等于安全线 时,按当前彩金池的 T*_weight 权重抽取档位。 + 当玩家在当前彩金池的累计盈利 低于安全线 时,按玩家的 T*_weight 权重抽取档位; + 当累计盈利 高于或等于安全线 时,按当前彩金池的 T*_weight 权重抽取档位(杀分)。
@@ -68,6 +70,9 @@