优化:全站金币图标由 🪙(银灰色)统一替换为 💰(金黄色)

🪙 在多数平台/字体上渲染为银灰色,与「金币」语义不符;
💰 各平台均渲染为金黄色,更直观传达金币概念。

涉及文件(43处):
- app/Jobs:百家乐、赛马结算广播
- app/Http/Controllers:管理员命令、红包、老虎机、神秘箱子
- app/Listeners
- resources/views:聊天室各游戏面板、商店、toolbar、后台页面等
This commit is contained in:
2026-03-04 15:00:02 +08:00
parent 349eb5a338
commit 040dbdef3c
23 changed files with 43 additions and 43 deletions
@@ -560,7 +560,7 @@ class AdminCommandController extends Controller
'room_id' => $roomId,
'from_user' => '系统公告',
'to_user' => '',
'content' => "🪙 <b>{$admin->username}</b>{$positionName})向 <b>{$targetUsername}</b> 发放了 <b>{$amount}</b> 枚奖励金币!",
'content' => "💰 <b>{$admin->username}</b>{$positionName})向 <b>{$targetUsername}</b> 发放了 <b>{$amount}</b> 枚奖励金币!",
'is_secret' => false,
'font_color' => '#d97706',
'action' => '',
@@ -584,9 +584,9 @@ class AdminCommandController extends Controller
'sent_at' => now()->toDateTimeString(),
// 前端 toast-notification 组件识别此字段,弹出右下角通知卡片
'toast_notification' => [
'title' => '🪙 奖励金币到账',
'title' => '💰 奖励金币到账',
'message' => "<b>{$admin->username}</b>{$positionName})向你发放了 <b>{$amount}</b> 枚金币!",
'icon' => '🪙',
'icon' => '💰',
'color' => '#f59e0b',
'duration' => 8000,
],
@@ -147,11 +147,11 @@ class MysteryBoxController extends Controller
if ($reward >= 0) {
$content = "{$emoji}【开箱播报】恭喜 【{$username}】 抢到了神秘{$typeName}"
. "获得 🪙" . number_format($reward) . " 金币!";
. "获得 💰" . number_format($reward) . " 金币!";
$color = $box->box_type === 'rare' ? '#c4b5fd' : '#34d399';
} else {
$content = "☠️【黑化陷阱】haha!【{$username}】 中了神秘黑化箱的陷阱!"
. "被扣除 🪙" . number_format(abs($reward)) . " 金币!点背~";
. "被扣除 💰" . number_format(abs($reward)) . " 金币!点背~";
$color = '#f87171';
}
+2 -2
View File
@@ -92,7 +92,7 @@ class RedPacketController extends Controller
// 货币展示文案
$typeLabel = $type === 'exp' ? '经验' : '金币';
$typeIcon = $type === 'exp' ? '✨' : '🪙';
$typeIcon = $type === 'exp' ? '✨' : '💰';
$btnBg = $type === 'exp'
? 'linear-gradient(135deg,#7c3aed,#4f46e5)'
: 'linear-gradient(135deg,#dc2626,#ea580c)';
@@ -303,7 +303,7 @@ class RedPacketController extends Controller
// 在聊天室发送领取播报(所有人可见)
$typeLabel = $envelopeType === 'exp' ? '经验' : '金币';
$typeIcon = $envelopeType === 'exp' ? '✨' : '🪙';
$typeIcon = $envelopeType === 'exp' ? '✨' : '💰';
$claimedMsg = [
'id' => $this->chatState->nextMessageId($roomId),
'room_id' => $roomId,
@@ -168,11 +168,11 @@ class SlotMachineController extends Controller
} elseif (in_array($resultType, ['triple_gem', 'triple', 'pair'], true)) {
// 普通中奖:仅向本人发送聊天室系统通知
$net = $payout - $cost;
$content = "🎰 {$resultLabel}{$e1}{$e2}{$e3} 赢得 +🪙".number_format($net).' 金币';
$content = "🎰 {$resultLabel}{$e1}{$e2}{$e3} 赢得 +💰".number_format($net).' 金币';
$this->broadcastPersonal($user->username, $content);
} elseif ($resultType === 'curse') {
// 诅咒:通知本人
$content = "☠️ 三骷髅诅咒!{$e1}{$e2}{$e3} 额外扣除 🪙".number_format($cost).' 金币!';
$content = "☠️ 三骷髅诅咒!{$e1}{$e2}{$e3} 额外扣除 💰".number_format($cost).' 金币!';
$this->broadcastPersonal($user->username, $content);
}
@@ -243,7 +243,7 @@ class SlotMachineController extends Controller
{
$net = $payout - $cost;
$content = "🎰🎉【老虎机大奖】恭喜 【{$username}】 转出三个7️⃣!"
.'狂揽 🪙'.number_format($net).' 金币!全服见证奇迹!';
.'狂揽 💰'.number_format($net).' 金币!全服见证奇迹!';
$msg = [
'id' => $this->chatState->nextMessageId(1),
+2 -2
View File
@@ -168,13 +168,13 @@ class CloseBaccaratRoundJob implements ShouldQueue
};
$payoutText = $round->total_payout > 0
? '共派发 🪙'.number_format($round->total_payout).' 金币'
? '共派发 💰'.number_format($round->total_payout).' 金币'
: '本局无人获奖';
// 拼接用户输赢明细(最多显示 10 人,防止消息过长)
$detailParts = [];
if ($winners) {
$detailParts[] = '🏆 中奖:'.implode('、', array_slice($winners, 0, 10)).' 🪙';
$detailParts[] = '🏆 中奖:'.implode('、', array_slice($winners, 0, 10)).' 💰';
}
if ($losers) {
$detailParts[] = '😔 未中:'.implode('、', array_slice($losers, 0, 10));
+1 -1
View File
@@ -148,7 +148,7 @@ class CloseHorseRaceJob implements ShouldQueue
}
$payoutText = $totalPayout > 0
? '共派发 🪙'.number_format($totalPayout).' 金币'
? '共派发 💰'.number_format($totalPayout).' 金币'
: '本场无人获奖';
$content = "🏆 【赛马】第 #{$race->id} 场结束!冠军:{$winnerName}{$payoutText}";
+1 -1
View File
@@ -213,7 +213,7 @@ class TriggerHolidayEventJob implements ShouldQueue
private function pushSystemMessage(HolidayEvent $event, int $claimCount, ChatStateService $chatState): void
{
$typeLabel = $event->distribute_type === 'fixed' ? "每人固定 {$event->fixed_amount} 金币" : '随机分配';
$content = "🎊 【{$event->name}】节日福利开始啦!总奖池 🪙".number_format($event->total_amount)
$content = "🎊 【{$event->name}】节日福利开始啦!总奖池 💰".number_format($event->total_amount)
." 金币,{$typeLabel},共 {$claimCount} 名在线用户可领取!点击弹窗按钮立即领取!";
$msg = [
+1 -1
View File
@@ -74,7 +74,7 @@ class SaveMarriageSystemMessage
$amount = number_format((int) $ceremony->total_amount);
$content = "{$tierIcon}{$userName}】与【{$partnerName}】举办了【{$tierName}】婚礼大典!"
."总计 🪙{$amount} 金币红包已向全场分发,快去领取吧!";
."总计 💰{$amount} 金币红包已向全场分发,快去领取吧!";
$this->pushAndSave($content, '#f59e0b');
}