Background
ID:
k
Đăng xuất
G1202512200001
20/12/2025 17:20:17
>
Đang tải...
XỈU
1:
1:
1:
1:
1:
1:
1:
TÀI
1:
"; foreach (array_reverse($recentPeriods) as $period): // 判断游戏类型并设置显示内容 if ($gameType === 'xocdia'): // Xóc Đĩa: 显示红色硬币数量 $redCount = $period['dice1'] ?? 0; $dotClass = ($redCount == 0 || $redCount == 2 || $redCount == 4) ? 'blue' : 'red'; $displayText = $redCount . 'Đ'; else: // 骰子游戏: 显示总和 $total = $period['total'] ?? 0; $dotClass = ($total >= 4 && $total <= 10) ? 'blue' : 'red'; $displayText = $total; endif; // 调试:输出当前位置 // echo ""; ?>
15) { $col = 1; $row++; } endforeach; else: // 如果没有历史记录,显示占位符 for ($i = 1; $i <= 15; $i++): ?>
-
= 5) break; if ($gameType === 'xocdia'): // Xóc Đĩa: 显示硬币颜色 $coins = json_decode($period['result'] ?? '[]', true); if (!is_array($coins) || count($coins) !== 4) continue; $redCount = count(array_filter($coins, fn($c) => $c === 'red')); $resultClass = ($redCount == 0 || $redCount == 2 || $redCount == 4) ? 'blue' : 'red'; $resultText = ($redCount == 0 || $redCount == 2 || $redCount == 4) ? 'Chẵn' : 'Lẻ'; ?>
= 4 && $total <= 10) ? 'blue' : 'red'; ?>