补充座驾动画标题用户信息

This commit is contained in:
pllx
2026-04-30 11:07:46 +08:00
parent 3eaf37a648
commit 7ba7b34ca7
9 changed files with 56 additions and 24 deletions
+3
View File
@@ -41,6 +41,7 @@ class EffectBroadcast implements ShouldBroadcastNow
* @param string|null $giftMessage 附带赠言
* @param string|null $effectTitle 特效画面标题
* @param string|null $rideName 座驾名称
* @param string|null $effectUserInfo 特效画面用户身份信息
*/
public function __construct(
public readonly int $roomId,
@@ -50,6 +51,7 @@ class EffectBroadcast implements ShouldBroadcastNow
public readonly ?string $giftMessage = null,
public readonly ?string $effectTitle = null,
public readonly ?string $rideName = null,
public readonly ?string $effectUserInfo = null,
) {}
/**
@@ -79,6 +81,7 @@ class EffectBroadcast implements ShouldBroadcastNow
'gift_message' => $this->giftMessage,
'effect_title' => $this->effectTitle,
'ride_name' => $this->rideName,
'effect_user_info' => $this->effectUserInfo,
];
}
}