修复礼包领取弹窗重复显示

This commit is contained in:
pllx
2026-05-05 21:48:51 +08:00
parent 11a882bd8e
commit 725a38eac3
3 changed files with 39 additions and 7 deletions
@@ -280,6 +280,8 @@ class RedPacketControllerTest extends TestCase
$this->assertFalse((bool) ($publicMessage['is_secret'] ?? true));
$this->assertStringContainsString('金币礼包', (string) ($publicMessage['toast_notification']['message'] ?? ''));
$this->assertSame('🧧', $publicMessage['toast_notification']['icon'] ?? null);
$this->assertSame($user->username, $publicMessage['toast_notification']['actor_username'] ?? null);
$this->assertTrue((bool) ($publicMessage['toast_notification']['skip_for_actor'] ?? false));
}
/**