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:
@@ -22,6 +22,9 @@ return [
|
||||
'player_create_agent_forbidden' => '无权将玩家归属到该代理节点。',
|
||||
'player_create_capability_forbidden' => '当前代理账号未开通「创建玩家」能力,请联系上级代理调整权限。',
|
||||
'player_already_registered' => '该主站玩家已在彩票平台注册。',
|
||||
'player_site_player_id_required' => '请填写主站玩家 ID。',
|
||||
'player_native_username_required' => '请填写彩票端登录账号。',
|
||||
'player_username_taken' => '该登录账号已被占用,请更换。',
|
||||
'player_wallet_balance_blocks_delete' => '该玩家钱包仍有余额,请先清空后再删除。',
|
||||
'player_credit_in_use_blocks_delete' => '该玩家仍有已占用信用额度,请先结清或释放后再删除。',
|
||||
'player_unpaid_settlement_blocks_delete' => '该玩家仍有未结账单,请先结清或核销后再删除。',
|
||||
@@ -51,4 +54,11 @@ return [
|
||||
'api_resource_no_permission_binding' => '后台 API 资源未绑定权限动作::code',
|
||||
'currency_default_cannot_delete' => '默认币种不可删除。',
|
||||
'currency_referenced_cannot_delete' => '该币种已被业务数据引用,暂不可删除::refs',
|
||||
'agent_cannot_operate_bill' => '当前账号无权操作该账单。',
|
||||
'agent_cannot_operate_player_bill' => '仅可登记直属玩家的账单收付,不能操作其他代理或下级玩家的账单。',
|
||||
'agent_bound_cannot_manage_periods' => '绑定代理账号不能开/关账期,请联系站点财务操作。',
|
||||
'agent_bound_cannot_finance_adjust' => '绑定代理账号不能执行坏账核销或补差冲正,请联系站点财务。',
|
||||
'agent_cannot_view_platform_pnl' => '代理账号不能查看全站盈亏报表。',
|
||||
'admin_site_id_required' => '请指定接入站点。',
|
||||
'admin_site_not_found' => '接入站点不存在或无权访问。',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user