feat: 增强代理结算和账单管理功能
- 在多个控制器中引入 SettlementPartyEnrichment 服务,以优化代理结算和账单的处理逻辑。 - 更新 AgentSettlementBillIndexController 和 AgentSettlementBillShowController,支持根据账单 ID 和关键字进行查询。 - 在 AgentSettlementPeriodCloseController 中添加对站点管理权限的验证,确保只有具备相应权限的管理员能够关闭账期。 - 在 AgentSettlementPeriodIndexController 中更新账期数据的返回格式,提升数据的完整性和可用性。 - 引入对相对占成比例的支持,增强代理资料的管理能力,确保数据一致性。
This commit is contained in:
@@ -84,16 +84,24 @@ final class AdminPlayerTicketItemsIndexController extends Controller
|
||||
'currency_code' => $row->order?->currency_code,
|
||||
'play_code' => $row->play_code,
|
||||
'original_number' => $row->original_number,
|
||||
// 历史字段:保留兼容,实际单位为 minor。
|
||||
'total_bet_amount' => $totalBet,
|
||||
'total_bet_amount_minor' => $totalBet,
|
||||
'total_bet_amount_formatted' => CurrencyFormatter::fromMinor($totalBet),
|
||||
// 历史字段:保留兼容,实际单位为 minor。
|
||||
'actual_deduct_amount' => $actualDeduct,
|
||||
'actual_deduct_amount_minor' => $actualDeduct,
|
||||
'actual_deduct_amount_formatted' => CurrencyFormatter::fromMinor($actualDeduct),
|
||||
'status' => $row->status,
|
||||
'fail_reason_code' => $row->fail_reason_code,
|
||||
'fail_reason_text' => $row->fail_reason_text,
|
||||
// 历史字段:保留兼容,实际单位为 minor。
|
||||
'win_amount' => $winAmount,
|
||||
'win_amount_minor' => $winAmount,
|
||||
'win_amount_formatted' => CurrencyFormatter::fromMinor($winAmount),
|
||||
// 历史字段:保留兼容,实际单位为 minor。
|
||||
'jackpot_win_amount' => $jackpotWin,
|
||||
'jackpot_win_amount_minor' => $jackpotWin,
|
||||
'jackpot_win_amount_formatted' => CurrencyFormatter::fromMinor($jackpotWin),
|
||||
'placed_at' => $row->order?->created_at?->toIso8601String(),
|
||||
'updated_at' => $row->updated_at?->toIso8601String(),
|
||||
|
||||
Reference in New Issue
Block a user