优化 游戏金币余额显示

This commit is contained in:
2026-04-12 22:31:35 +08:00
parent ef407a8c6e
commit c297b61493
6 changed files with 51 additions and 6 deletions
+2 -1
View File
@@ -36,7 +36,7 @@ class BaccaratControllerTest extends TestCase
public function test_can_get_current_round()
{
/** @var \App\Models\User $user */
$user = User::factory()->create();
$user = User::factory()->create(['jjb' => 3456]);
$round = BaccaratRound::forceCreate([
'status' => 'betting',
@@ -57,6 +57,7 @@ class BaccaratControllerTest extends TestCase
$response->assertStatus(200);
$response->assertJsonStructure(['round' => ['id', 'status', 'bet_closes_at']]);
$this->assertEquals($round->id, $response->json('round.id'));
$this->assertSame(3456, $response->json('jjb'));
}
public function test_can_bet()