升级 laravel12 补丁

This commit is contained in:
2026-04-19 16:43:51 +08:00
parent d4a9389fbc
commit 916f4c5aa6
2 changed files with 363 additions and 344 deletions
Generated
+352 -344
View File
File diff suppressed because it is too large Load Diff
@@ -156,6 +156,17 @@ class BaccaratLossCoverControllerTest extends TestCase
'claim_status' => 'pending',
]);
// 额外保留一条待领取记录,确保当前用户领取后活动仍处于 claimable,
// 从而广播消息继续携带“领取补偿”按钮。
BaccaratLossCoverRecord::factory()->create([
'event_id' => $event->id,
'user_id' => User::factory()->create()->id,
'total_bet_amount' => 800,
'total_loss_amount' => 200,
'compensation_amount' => 200,
'claim_status' => 'pending',
]);
$response = $this->actingAs($user)->postJson(route('baccarat-loss-cover.claim', $event));
$response->assertOk()->assertJson([