Compare commits
2
Commits
4a759802dc
...
32ca130f90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
32ca130f90 | ||
|
|
daeef0af0b |
@@ -464,13 +464,13 @@ class GomokuController extends Controller
|
||||
'resign' => '(认输)',
|
||||
default => '',
|
||||
};
|
||||
$text = "🌟 ♟️ 【五子棋】玩家对战结果!恭喜玩家【{$winnerName}】击败了【{$loserName}】{$reasonText},赢得 {$rewardGold} 金币!";
|
||||
$text = "♟️ 【五子棋】玩家对战结果!恭喜玩家【{$winnerName}】击败了【{$loserName}】{$reasonText},赢得 {$rewardGold} 金币!";
|
||||
} elseif ($winnerColor === 1) {
|
||||
// PvE:玩家获胜
|
||||
$text = "🌟 ♟️ 【五子棋】棋神降临!恭喜玩家【{$winnerName}】在人机对战(难度{$game->ai_level})中击败 AI,赢得 {$rewardGold} 金币!";
|
||||
$text = "♟️ 【五子棋】棋神降临!恭喜玩家【{$winnerName}】在人机对战(难度{$game->ai_level})中击败 AI,赢得 {$rewardGold} 金币!";
|
||||
} else {
|
||||
// PvE:AI 获胜(玩家输了)
|
||||
$text = "🌟 ♟️ 【五子棋】AI 大获全胜!玩家【{$loserName}】在人机对战(难度{$game->ai_level})中不敌 AI,再接再厉!";
|
||||
$text = "♟️ 【五子棋】AI 大获全胜!玩家【{$loserName}】在人机对战(难度{$game->ai_level})中不敌 AI,再接再厉!";
|
||||
}
|
||||
$this->broadcastSystemMessage($game->room_id, $text);
|
||||
}
|
||||
|
||||
@@ -1143,14 +1143,18 @@
|
||||
border-radius:6px; font-size:13px; color:#92400e;
|
||||
outline:none; box-sizing:border-box;">
|
||||
<button x-on:click="send()"
|
||||
style="padding:9px 20px; border:none; border-radius:20px;
|
||||
style="padding:0 24px; border:none; border-radius:8px;
|
||||
font-size:13px; font-weight:bold; color:#fff;
|
||||
cursor:pointer; transition:opacity .15s; white-space:nowrap;"
|
||||
:style="(sending || !amount) ?
|
||||
'background:#f59e0b; opacity:.45; cursor:not-allowed;' :
|
||||
'background:#f59e0b; opacity:1;'"
|
||||
:disabled="sending || !amount">
|
||||
<span x-text="sending ? '发放中…' : '确认发放'"></span>
|
||||
cursor:pointer; transition:all .15s; white-space:nowrap;
|
||||
background:linear-gradient(135deg,#f59e0b,#d97706);
|
||||
box-shadow:0 3px 10px rgba(217,119,6,.35);"
|
||||
:style="(sending || !amount)
|
||||
? 'opacity:.45; cursor:not-allowed; box-shadow:none;'
|
||||
: 'opacity:1;'"
|
||||
:disabled="sending || !amount"
|
||||
onmouseover="if(!this.disabled) this.style.transform='translateY(-1px)'; if(!this.disabled) this.style.boxShadow='0 5px 16px rgba(217,119,6,.45)'"
|
||||
onmouseout="this.style.transform=''; this.style.boxShadow='0 3px 10px rgba(217,119,6,.35)'">
|
||||
<span x-text="sending ? '发放中…' : '✅ 确认发放'"></span>
|
||||
</button>
|
||||
</div>
|
||||
<p style="margin:0; font-size:10px; color:#b45309; opacity:.75; text-align:center;">
|
||||
|
||||
Reference in New Issue
Block a user