feat: 新增赔率版本和玩法配置版本的删除接口,支持删除草稿版本

This commit is contained in:
2026-05-15 15:30:40 +08:00
parent 5398af0a55
commit c0cd8be0fb
18 changed files with 574 additions and 125 deletions

View File

@@ -17,7 +17,7 @@ final class TicketWalletService
private const TXN_DIR_IN = 1;
public function deduct(Player $player, string $currencyCode, int $amountMinor, TicketOrder $order): void
public function deduct(Player $player, string $currencyCode, int $amountMinor, TicketOrder $order): int
{
$wallet = PlayerWallet::query()
->where('player_id', $player->id)
@@ -65,6 +65,8 @@ final class TicketWalletService
'idempotent_key' => $order->client_trace_id,
'remark' => null,
]);
return $after;
}
/**