feat: enhance agent management and validation logic
- Updated AGENTS.md to clarify agent account restrictions and permissions. - Implemented checks in AgentNodeAdminUserStoreController and AgentNodeRoleStoreController to restrict admin user and role creation to the agent's own node. - Enhanced validation in AdminPlayerStoreController and AdminPlayerUpdateController to enforce credit limit and rebate rate rules based on player funding mode. - Refactored various request classes to utilize shared admin account field rules for consistency. - Improved error handling in services related to credit allocation and rebate limits to ensure proper validation and messaging.
This commit is contained in:
@@ -17,7 +17,14 @@ return [
|
||||
'exceeds_parent' => '占成比例不能超过上级代理。',
|
||||
'exceeds_available' => '超出代理可下发额度:请提高该代理授信,或减少其他下级/玩家已占用的额度。',
|
||||
'agent_profile_required' => '该代理尚未配置占成与授信,请先在「占成与授信」保存代理档案。',
|
||||
'exceeds_limit' => '默认玩家回水不能超过回水上限。',
|
||||
'parent_profile_required' => '上级代理尚未配置占成与授信,请先完善上级代理档案。',
|
||||
'exceeds_limit' => '超出允许上限,请调整后重试。',
|
||||
'exceeds_player_rebate_limit' => '回水比例不能超过代理回水上限。',
|
||||
'exceeds_parent_rebate' => '回水上限不能超过上级代理。',
|
||||
'exceeds_default_rebate_limit' => '默认玩家回水不能超过本节点回水上限。',
|
||||
'not_allowed' => '当前代理未开放该能力,无法设置。',
|
||||
'wallet_player_prohibited' => '主站钱包玩家不支持授信额度与回水设置。',
|
||||
'exceeds_unpaid' => '收付金额不能超过账单未结金额。',
|
||||
'invalid_range' => '占成比例必须在 0–100 之间。',
|
||||
'below_allocated' => '代理授信额度不能低于已下发给下级代理与玩家的总额。',
|
||||
'below_player_used' => '玩家授信额度不能低于该玩家已占用(含冻结)的额度。',
|
||||
@@ -35,4 +42,17 @@ return [
|
||||
'period_not_found' => '账期不存在或无权访问。',
|
||||
'period_already_closed' => '该账期已关账,请勿重复操作。',
|
||||
'share_snapshot_missing' => '账期内存在缺少占成快照的流水,无法关账。请先完成开奖结算或联系技术支持。',
|
||||
'completed' => '该账期已关账,无法再修改账单或登记收付。',
|
||||
'locked' => '账单已锁定,无法修改金额或状态。',
|
||||
'not_payable' => '当前账单状态不允许登记收付,请先确认账单。',
|
||||
'not_confirmable' => '当前账单状态不允许确认。',
|
||||
'not_eligible' => '当前账单不符合此操作条件。',
|
||||
'no_unpaid' => '该账单已无未结金额。',
|
||||
'not_locked' => '账单尚未确认锁定,无法执行补差或冲正。',
|
||||
'zero' => '金额不能为 0。',
|
||||
'insufficient' => '可用信用额度不足,请减少下注金额或联系代理提高授信。',
|
||||
'overdue' => '存在逾期未结账单,请先结清后再操作。',
|
||||
'invalid' => '数值无效,请检查后重试。',
|
||||
'bill_not_found' => '结算账单不存在或无权访问。',
|
||||
'exists' => '所选站点不存在或未接入。',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user