feat: 添加结算功能,更新 TicketItem 模型以支持最新结算详情,增强 DrawTickService 以自动处理结算,更新 TicketWalletService 以支持派彩入账,扩展 API 路由以管理结算批次和奖池
This commit is contained in:
23
app/Services/Settlement/Matchers/NoopSettlementMatcher.php
Normal file
23
app/Services/Settlement/Matchers/NoopSettlementMatcher.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace App\Services\Settlement\Matchers;
|
||||
|
||||
use App\Models\TicketItem;
|
||||
use App\Services\Settlement\Contracts\SettlementPlayMatcher;
|
||||
use App\Services\Settlement\PublishedDrawResultBoard;
|
||||
use Illuminate\Support\Collection;
|
||||
|
||||
/**
|
||||
* 阶段 6 首轮未实现的玩法:不派奖(后续补位置类、单双等匹配器)。
|
||||
*/
|
||||
final class NoopSettlementMatcher implements SettlementPlayMatcher
|
||||
{
|
||||
public function match(TicketItem $item, PublishedDrawResultBoard $board, Collection $combinations): array
|
||||
{
|
||||
return [
|
||||
'win_amount' => 0,
|
||||
'matched_prize_tier' => null,
|
||||
'match_detail' => ['play_code' => $item->play_code, 'skipped' => true],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user