feat: 公屏公告同时弹右下角通知(所有人可见)
This commit is contained in:
@@ -524,6 +524,13 @@ class AdminCommandController extends Controller
|
||||
'font_color' => '#b91c1c',
|
||||
'action' => '',
|
||||
'sent_at' => now()->toDateTimeString(),
|
||||
'toast_notification' => [
|
||||
'title' => '📢 公屏公告',
|
||||
'message' => strip_tags($content),
|
||||
'icon' => '📢',
|
||||
'color' => '#b91c1c',
|
||||
'duration' => 10000,
|
||||
],
|
||||
];
|
||||
$this->chatState->pushMessage($roomId, $msg);
|
||||
broadcast(new MessageSent($roomId, $msg));
|
||||
|
||||
Reference in New Issue
Block a user