refactor: 调整返点字段为百分比格式并新增集成指南路由
- 将 rebate_limit 和 default_player_rebate 的校验范围从 0-1 改为 0-100 - 在服务层进行百分比与小数的转换(输入除以100,输出乘以100) - 更新相关测试用例以匹配新的百分比格式 - 新增 admin/docs/integration-guide 路由用于集成文档展示
This commit is contained in:
@@ -13,8 +13,8 @@ trait AgentProfileFieldRules
|
||||
'total_share_rate' => ['sometimes', 'numeric', 'min:0', 'max:100'],
|
||||
'relative_share_rate' => ['sometimes', 'numeric', 'min:0', 'max:100'],
|
||||
'credit_limit' => ['sometimes', 'integer', 'min:0'],
|
||||
'rebate_limit' => ['sometimes', 'numeric', 'min:0', 'max:1'],
|
||||
'default_player_rebate' => ['sometimes', 'numeric', 'min:0', 'max:1'],
|
||||
'rebate_limit' => ['sometimes', 'numeric', 'min:0', 'max:100'],
|
||||
'default_player_rebate' => ['sometimes', 'numeric', 'min:0', 'max:100'],
|
||||
'settlement_cycle' => ['sometimes', 'string', 'in:'.implode(',', AgentSettlementCycle::VALUES)],
|
||||
'can_grant_extra_rebate' => ['sometimes', 'boolean'],
|
||||
'can_create_child_agent' => ['sometimes', 'boolean'],
|
||||
|
||||
Reference in New Issue
Block a user