增加 百家乐通知后面增加 快速参与按钮
This commit is contained in:
@@ -73,7 +73,11 @@ class OpenBaccaratRoundJob implements ShouldQueue
|
|||||||
}
|
}
|
||||||
$killText = implode('或', array_map('intval', $killPoints));
|
$killText = implode('或', array_map('intval', $killPoints));
|
||||||
|
|
||||||
$content = "🎲 【百家乐】第 #{$round->id} 局开始!下注时间 {$betSeconds} 秒,押注范围 {$minBet}~{$maxBet} 金币。赔率:🔵大/🟡小 1:{$bigRate} · 💥豹子 1:{$tripleRate}(☠️ {$killText} 点庄家收割)";
|
$quickOpenButton = '<button type="button" '
|
||||||
|
.'onclick="event.preventDefault(); Alpine.$data(document.getElementById(\'baccarat-panel\')).openFromHall();" '
|
||||||
|
.'style="margin-left:8px; padding:2px 8px; border:1px solid #7c3aed; border-radius:999px; background:#fff; color:#7c3aed; font-size:12px; font-weight:bold; cursor:pointer;">'
|
||||||
|
.'快速参与</button>';
|
||||||
|
$content = "🎲 【百家乐】第 #{$round->id} 局开始!下注时间 {$betSeconds} 秒,押注范围 {$minBet}~{$maxBet} 金币。赔率:🔵大/🟡小 1:{$bigRate} · 💥豹子 1:{$tripleRate}(☠️ {$killText} 点庄家收割)".$quickOpenButton;
|
||||||
$msg = [
|
$msg = [
|
||||||
'id' => $chatState->nextMessageId(1),
|
'id' => $chatState->nextMessageId(1),
|
||||||
'room_id' => 1,
|
'room_id' => 1,
|
||||||
|
|||||||
@@ -526,7 +526,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重置为未开局空状态
|
* 从大厅或通知点击打开
|
||||||
|
*/
|
||||||
|
openFromHall() {
|
||||||
|
this.show = true;
|
||||||
|
this.loadCurrentRound();
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 自动重置为未开局空状态
|
||||||
*/
|
*/
|
||||||
setIdleState() {
|
setIdleState() {
|
||||||
clearInterval(this.countdownTimer);
|
clearInterval(this.countdownTimer);
|
||||||
|
|||||||
Reference in New Issue
Block a user