From 0b2f4a026e9948adc656fbe66fa4f57f7839ed63 Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Mon, 16 Mar 2026 16:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BD=A9=E9=87=91=E6=B1=A0?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=BA=BF=E8=A7=A6=E5=8F=91=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dice/api/lottery_pool_config/index.ts | 11 +++- .../index/modules/current-pool-dialog.vue | 31 ++++++++-- server/app/api/logic/PlayStartLogic.php | 30 ++++++--- .../DiceLotteryPoolConfigController.php | 12 +++- .../DiceLotteryPoolConfigLogic.php | 14 ++++- .../reward_config_record/WeightTestRunner.php | 62 +++++++++++++------ server/plugin/saiadmin/config/route.php | 1 + 7 files changed, 127 insertions(+), 34 deletions(-) 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 @@