缩短弹窗通知显示时间
This commit is contained in:
@@ -1023,7 +1023,7 @@ class AdminCommandController extends Controller
|
||||
'message' => "<b>{$admin->username}</b>({$positionName})向你发放了 <b>{$amount}</b> 枚金币!",
|
||||
'icon' => '💰',
|
||||
'color' => '#f59e0b',
|
||||
'duration' => 8000,
|
||||
'duration' => 3000,
|
||||
],
|
||||
];
|
||||
$this->chatState->pushMessage($roomId, $msg);
|
||||
|
||||
@@ -506,7 +506,7 @@ class ChatController extends Controller
|
||||
'message' => strip_tags($pureContent),
|
||||
'icon' => '👋',
|
||||
'color' => '#e11d48',
|
||||
'duration' => 8000,
|
||||
'duration' => 3000,
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1425,7 +1425,7 @@ class ChatController extends Controller
|
||||
'message' => '<b>'.ChatContentSanitizer::htmlText($sender->username)."</b> 向你赠送了 <b>{$amount}</b> 枚金币!",
|
||||
'icon' => '💰',
|
||||
'color' => '#f59e0b',
|
||||
'duration' => 8000,
|
||||
'duration' => 3000,
|
||||
],
|
||||
];
|
||||
|
||||
|
||||
@@ -428,7 +428,7 @@ class AchievementService
|
||||
'message' => "{$definition['icon']} {$definition['name']}",
|
||||
'icon' => '🏅',
|
||||
'color' => '#ca8a04',
|
||||
'duration' => 8000,
|
||||
'duration' => 3000,
|
||||
],
|
||||
'sent_at' => now()->toDateTimeString(),
|
||||
];
|
||||
|
||||
@@ -122,7 +122,7 @@ class GameBetBroadcastService
|
||||
'message' => $toastMessage,
|
||||
'icon' => $toastIcon,
|
||||
'color' => $toastColor,
|
||||
'duration' => 8000,
|
||||
'duration' => 3000,
|
||||
];
|
||||
|
||||
if ($toastActorUsername !== null) {
|
||||
|
||||
Reference in New Issue
Block a user