From 51105dd1e039f7abb81de75e89409eee8dc099fc Mon Sep 17 00:00:00 2001 From: zhenhui <1276357500@qq.com> Date: Wed, 3 Jun 2026 16:45:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BC=98=E5=8C=96=E5=BD=A9=E9=87=91=E6=B1=A0?= =?UTF-8?q?=E9=85=8D=E7=BD=AEUI=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../langs/en/dice/lottery_pool_config.json | 22 ++++---- .../langs/zh/dice/lottery_pool_config.json | 22 ++++---- .../dice/lottery_pool_config/index/index.vue | 25 ++++++++- .../index/modules/current-pool-dialog.vue | 3 +- .../index/modules/edit-dialog.vue | 54 +++++++++++++++---- 5 files changed, 95 insertions(+), 31 deletions(-) diff --git a/saiadmin-artd/src/locales/langs/en/dice/lottery_pool_config.json b/saiadmin-artd/src/locales/langs/en/dice/lottery_pool_config.json index 90a28c6..591cfb8 100644 --- a/saiadmin-artd/src/locales/langs/en/dice/lottery_pool_config.json +++ b/saiadmin-artd/src/locales/langs/en/dice/lottery_pool_config.json @@ -21,20 +21,22 @@ "currentPoolTitle": "Current Lottery Pool", "loading": "Loading...", "poolName": "Pool Name", - "playerProfit": "Player Total Profit (profit_amount):", + "poolProfitAmount": "Pool cumulative profit (profit_amount):", "realtime": "Live", - "profitCalcHint": "Profit per round: paid = win_coin (incl. BIGWIN) - paid_amount (= ante×1); free = win_coin. Refreshes every 2s while open.", - "tierRuleTitle": "Tier Rule", - "tierRuleContent": "When player profit in this pool is below safety line, use player T*_weight; when above or equal, use pool T*_weight (kill).", + "profitCalcHint": "Accumulated on name=default (Normal) pool: paid += win_coin − paid_amount (ante×1); free += win_coin. Compared with safety line to decide paid-draw kill switch. Refreshes every 2s while open.", + "tierRuleTitle": "Paid draw tier rule", + "tierRuleContent": "Compares default pool profit_amount (not per-player profit). Below safety line or kill off: use player T*_weight; at or above safety line with kill on: use killScore pool T*_weight. Free draws always use killScore weights (safety line N/A).", "enableKillScore": "Enable kill score", - "killScoreWeights": "Kill weights", - "killWeightNote": "(Kill weights from pool config type=1; edit in list.)", - "btnResetProfit": "Reset Player Total Profit", - "btnSaveSafetyLine": "Save Safety Line", + "killScoreWeights": "Kill weights (killScore)", + "killWeightNote": "Edit killScore (Force Kill) row in the list for kill weights. This dialog only configures default pool safety line and kill switch.", + "btnResetProfit": "Reset pool cumulative profit", + "btnSaveSafetyLine": "Save safety line & kill switch", + "safetyLineDefaultOnlyHint": "Only the default (Normal) pool safety line affects kill logic; do not set safety line on other pool types.", + "safetyLineNotUsedReadonly": "This pool type does not use safety line for kill logic. Edit the Normal (default) row or use View Current Pool.", "ruleSafetyLineRequired": "Please enter safety line", "msgGetPoolFailed": "Failed to get lottery pool", "msgSaveSuccess": "Save Success", - "msgResetProfitSuccess": "Player total profit reset to 0", + "msgResetProfitSuccess": "Pool cumulative profit reset to 0", "msgResetFailed": "Reset failed", "ruleNameRequired": "Name is required", "rulePoolTypeRequired": "Please select pool type", @@ -62,6 +64,8 @@ "name": "Name", "poolType": "Pool Type", "safetyLine": "Safety Line", + "safetyLineNotUsed": "Not used for kill", + "safetyLineTip": "Normal (default) row only", "t1PoolWeight": "T1 Pool Weight", "t2PoolWeight": "T2 Pool Weight", "t3PoolWeight": "T3 Pool Weight", diff --git a/saiadmin-artd/src/locales/langs/zh/dice/lottery_pool_config.json b/saiadmin-artd/src/locales/langs/zh/dice/lottery_pool_config.json index bb9793e..d70e136 100644 --- a/saiadmin-artd/src/locales/langs/zh/dice/lottery_pool_config.json +++ b/saiadmin-artd/src/locales/langs/zh/dice/lottery_pool_config.json @@ -21,20 +21,22 @@ "currentPoolTitle": "当前彩金池", "loading": "加载中...", "poolName": "池子名称", - "playerProfit": "玩家累计盈利(profit_amount):", + "poolProfitAmount": "彩金池累计盈利(profit_amount):", "realtime": "实时", - "profitCalcHint": "计算方式:付费每局按“赢取平台币 win_coin(含 BIGWIN)减去付费金额 压注金额paid_amount(= 压注倍数ante×1)”累加;免费每局按“玩家赢得平台币win_coin”累加。弹窗打开期间每 2 秒自动刷新", - "tierRuleTitle": "抽奖档位规则", - "tierRuleContent": "当玩家在当前彩金池的累计盈利 低于安全线 时,按 玩家 的 T*_weight 权重抽取档位;当累计盈利 高于或等于安全线 时,按 当前彩金池 的 T*_weight 权重抽取档位(杀分)。", + "profitCalcHint": "累计在 name=default(正常)奖池上:付费每局 += win_coin − paid_amount(ante×1);免费每局 += win_coin。用于与安全线比较,判定付费抽奖是否切换杀分。弹窗打开期间每 2 秒自动刷新。", + "tierRuleTitle": "付费抽奖档位规则", + "tierRuleContent": "比较对象为 default 奖池的 profit_amount(非单个玩家盈利)。当 profit_amount 低于安全线或未开启杀分时,按玩家 T*_weight 抽档;当 profit_amount 高于或等于安全线且已开启杀分时,按 killScore 奖池的 T*_weight 抽档。免费抽奖始终按 killScore 权重(与安全线无关)。", "enableKillScore": "开启杀分", - "killScoreWeights": "杀分权重", - "killWeightNote": "(杀分权重来自奖池配置,请在列表中编辑对应记录)", - "btnResetProfit": "重置玩家累计盈利", - "btnSaveSafetyLine": "保存安全线", + "killScoreWeights": "杀分权重(killScore)", + "killWeightNote": "杀分权重请在列表中编辑 name=killScore(强制杀猪)记录;本弹窗仅配置 default 奖池的安全线与杀分开关。", + "btnResetProfit": "重置彩金池累计盈利", + "btnSaveSafetyLine": "保存安全线与杀分开关", + "safetyLineDefaultOnlyHint": "仅 name=default(正常)奖池的安全线参与杀分判定;其它奖池类型请勿在此配置安全线。", + "safetyLineNotUsedReadonly": "当前奖池类型不参与杀分判定,安全线仅对「正常(default)」奖池生效,请通过「查看当前彩金池」或编辑正常行修改。", "ruleSafetyLineRequired": "请输入安全线", "msgGetPoolFailed": "获取彩金池失败", "msgSaveSuccess": "保存成功", - "msgResetProfitSuccess": "玩家累计盈利已重置为 0", + "msgResetProfitSuccess": "彩金池累计盈利已重置为 0", "msgResetFailed": "重置失败", "ruleNameRequired": "名称必需填写", "rulePoolTypeRequired": "请选择奖池类型", @@ -62,6 +64,8 @@ "name": "名称", "poolType": "奖池类型", "safetyLine": "安全线", + "safetyLineNotUsed": "不参与杀分判定", + "safetyLineTip": "仅「正常(default)」行有效", "t1PoolWeight": "T1池权重", "t2PoolWeight": "T2池权重", "t3PoolWeight": "T3池权重", diff --git a/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue index 0de83b0..e515539 100644 --- a/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue +++ b/saiadmin-artd/src/views/plugin/dice/lottery_pool_config/index/index.vue @@ -29,6 +29,12 @@ @pagination:size-change="handleSizeChange" @pagination:current-change="handleCurrentChange" > +