5
MO
CaLotto888 / Trạm Điều Hành
Trạm Điều Hành
Bảng tổng chỉ huy toàn hệ thống CaLotto888
Hệ thống hoạt động trơn tru 100%
6
Cửa Hàng (Đại Lý)
$10M
Hạn Mức Tín Dụng Toàn Mạng
$575.00
Tổng Doanh Thu Cược
16
Tổng Đơn Cược Hợp Lệ
$0.00
Tổng Tiền Trả Thưởng
$546.25
Lợi Nhuận Ròng (GGR)
95.0%
Tỷ Lệ Giữ Lại Của Nhà Cái
HMAC-SHA256
Khóa Sổ Bất Biến Tuyệt Đối
100%
Cơ Chế "Thùng Nước Gạo" An Toàn
Vé Cược Mới Nhất 16 vé
MÃ VÉ TỔNG ĐẠI LÝ ĐẠI LÝ KHÁCH HÀNG KỲ QUAY TRÒ CHƠI TIỀN CƯỢC TRẠNG THÁI # THAO TÁC
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC (10 KÝ TỰ)
--
✓ Đã chép
Mã QR
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit_per_draw_cad || 100000).toLocaleString() + ' CAD'; } const ctxRate = document.getElementById('ctxPriceRate'); if (ctxRate) { ctxRate.innerText = '(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.price_rate || 0.85).toFixed(2) + ' CAD'; } } // ========================================================================= // QR CODE ZOOM MODAL LOGIC // ========================================================================= function openQrZoomModal(imgSrc, hmacCode, ticketCode) { const modal = document.getElementById('qrZoomModal'); const img = document.getElementById('qrZoomImgSrc'); const hmacEl = document.getElementById('qrZoomHmacText'); const sub = document.getElementById('qrZoomSubTitle'); if (modal && img) { img.src = imgSrc; if (hmacEl) hmacEl.innerText = 'HMAC SHA-256 (10 ký tự): ' + (hmacCode || '--'); if (sub) sub.innerText = 'Mã vé: ' + (ticketCode || '--') + ' • Quét mã đối soát toàn vẹn'; modal.style.display = 'flex'; } } function closeQrZoomModal() { const modal = document.getElementById('qrZoomModal'); if (modal) modal.style.display = 'none'; } function highlightModule(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit || 0).toLocaleString('en-US'); } } function highlightModule(el) { if (!el) return; el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; } function zoomCurrentTicketQr() { const qrImg = document.getElementById('drawerQrThumb'); if (qrImg && qrImg.dataset.qrUrl) { openQrZoomModal(qrImg.dataset.qrUrl, qrImg.dataset.hmac, qrImg.dataset.ticket); } }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC (10 KÝ TỰ)
--
✓ Đã chép
Mã QR
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit_per_draw_cad || 100000).toLocaleString() + ' CAD'; } const ctxRate = document.getElementById('ctxPriceRate'); if (ctxRate) { ctxRate.innerText = '(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.price_rate || 0.85).toFixed(2) + ' CAD'; } } // ========================================================================= // QR CODE ZOOM MODAL LOGIC // ========================================================================= function openQrZoomModal(imgSrc, hmacCode, ticketCode) { const modal = document.getElementById('qrZoomModal'); const img = document.getElementById('qrZoomImgSrc'); const hmacEl = document.getElementById('qrZoomHmacText'); const sub = document.getElementById('qrZoomSubTitle'); if (modal && img) { img.src = imgSrc; if (hmacEl) hmacEl.innerText = 'HMAC SHA-256 (10 ký tự): ' + (hmacCode || '--'); if (sub) sub.innerText = 'Mã vé: ' + (ticketCode || '--') + ' • Quét mã đối soát toàn vẹn'; modal.style.display = 'flex'; } } function closeQrZoomModal() { const modal = document.getElementById('qrZoomModal'); if (modal) modal.style.display = 'none'; } function highlightModule(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit || 0).toLocaleString('en-US'); } } function highlightModule(el) { if (!el) return; el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; } function zoomCurrentTicketQr() { const qrImg = document.getElementById('drawerQrThumb'); if (qrImg && qrImg.dataset.qrUrl) { openQrZoomModal(qrImg.dataset.qrUrl, qrImg.dataset.hmac, qrImg.dataset.ticket); } }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC (10 KÝ TỰ)
--
✓ Đã chép
Mã QR
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit_per_draw_cad || 100000).toLocaleString() + ' CAD'; } const ctxRate = document.getElementById('ctxPriceRate'); if (ctxRate) { ctxRate.innerText = '(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.price_rate || 0.85).toFixed(2) + ' CAD'; } } // ========================================================================= // QR CODE ZOOM MODAL LOGIC // ========================================================================= function openQrZoomModal(imgSrc, hmacCode, ticketCode) { const modal = document.getElementById('qrZoomModal'); const img = document.getElementById('qrZoomImgSrc'); const hmacEl = document.getElementById('qrZoomHmacText'); const sub = document.getElementById('qrZoomSubTitle'); if (modal && img) { img.src = imgSrc; if (hmacEl) hmacEl.innerText = 'HMAC SHA-256 (10 ký tự): ' + (hmacCode || '--'); if (sub) sub.innerText = 'Mã vé: ' + (ticketCode || '--') + ' • Quét mã đối soát toàn vẹn'; modal.style.display = 'flex'; } } function closeQrZoomModal() { const modal = document.getElementById('qrZoomModal'); if (modal) modal.style.display = 'none'; } function highlightModule(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit || 0).toLocaleString('en-US'); } } function highlightModule(el) { if (!el) return; el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; } function zoomCurrentTicketQr() { const qrImg = document.getElementById('drawerQrThumb'); if (qrImg && qrImg.dataset.qrUrl) { openQrZoomModal(qrImg.dataset.qrUrl, qrImg.dataset.hmac, qrImg.dataset.ticket); } }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC (10 KÝ TỰ)
--
✓ Đã chép
Mã QR
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.credit_limit_per_draw_cad || 100000).toLocaleString() + ' CAD'; } const ctxRate = document.getElementById('ctxPriceRate'); if (ctxRate) { ctxRate.innerText = '(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --
+ Number(u.price_rate || 0.85).toFixed(2) + ' CAD'; } } // ========================================================================= // QR CODE ZOOM MODAL LOGIC // ========================================================================= function openQrZoomModal(imgSrc, hmacCode, ticketCode) { const modal = document.getElementById('qrZoomModal'); const img = document.getElementById('qrZoomImgSrc'); const hmacEl = document.getElementById('qrZoomHmacText'); const sub = document.getElementById('qrZoomSubTitle'); if (modal && img) { img.src = imgSrc; if (hmacEl) hmacEl.innerText = 'HMAC SHA-256 (10 ký tự): ' + (hmacCode || '--'); if (sub) sub.innerText = 'Mã vé: ' + (ticketCode || '--') + ' • Quét mã đối soát toàn vẹn'; modal.style.display = 'flex'; } } function closeQrZoomModal() { const modal = document.getElementById('qrZoomModal'); if (modal) modal.style.display = 'none'; } function highlightModule(el) { el.style.transition = 'box-shadow 0.3s ease, border-color 0.3s ease'; el.style.boxShadow = '0 0 0 3px rgba(11, 87, 208, 0.3)'; el.style.borderColor = '#0b57d0'; setTimeout(() => { el.style.boxShadow = ''; el.style.borderColor = ''; }, 1800); } // Cập nhật số liệu lên các metric cards của Dashboard chính function updateHncbDashboardCards(totalBets, totalPayouts, ticketCount) { const net = totalBets - totalPayouts; const holdPct = totalBets > 0 ? ((net / totalBets) * 100).toFixed(1) + '%' : '0.0%'; const elTurnover = document.getElementById('metricCardTurnover'); if (elTurnover) elTurnover.innerText = `$${totalBets.toFixed(2)}`; const elPayouts = document.getElementById('metricCardPayouts'); if (elPayouts) elPayouts.innerText = `$${totalPayouts.toFixed(2)}`; const elProfit = document.getElementById('metricCardProfit'); if (elProfit) elProfit.innerText = `$${net.toFixed(2)}`; const elHold = document.getElementById('metricCardHold'); if (elHold) elHold.innerText = holdPct; const elCount = document.getElementById('metricCardTicketCount'); if (elCount) elCount.innerText = ticketCount; const elMiniCount = document.getElementById('dashboardMiniTicketCount'); if (elMiniCount) elMiniCount.innerText = `${ticketCount} vé`; } // ========================================================================= // CONTROLLER: CÀI ĐẶT 9 TRÒ CHƠI & RIGHT DRAWER SLIDE-OVER (ANH KURT STANDARD) // ========================================================================= let currentEditingGameCode = null; let currentDrawerBettingDays = []; let currentDrawerScheduleDays = []; let agLoadedGamesList = []; const AG_WEEK_DAYS = [ { key: 'MON', label: 'T2', full: 'Thứ 2' }, { key: 'TUE', label: 'T3', full: 'Thứ 3' }, { key: 'WED', label: 'T4', full: 'Thứ 4' }, { key: 'THU', label: 'T5', full: 'Thứ 5' }, { key: 'FRI', label: 'T6', full: 'Thứ 6' }, { key: 'SAT', label: 'T7', full: 'Thứ 7' }, { key: 'SUN', label: 'CN', full: 'Chủ Nhật' } ]; function formatScheduleDaysVi(daysStr) { if (!daysStr) return 'Chưa thiết lập'; const s = String(daysStr).trim().toUpperCase(); if (s === 'DAILY' || s === 'ALL' || s === 'MON,TUE,WED,THU,FRI,SAT,SUN') { return 'Hàng ngày (T2 - CN)'; } const map = { 'MON': 'Thứ 2', 'TUE': 'Thứ 3', 'WED': 'Thứ 4', 'THU': 'Thứ 5', 'FRI': 'Thứ 6', 'SAT': 'Thứ 7', 'SUN': 'CN' }; return s.split(',').map(d => map[d.trim()] || d.trim()).join(', '); } async function loadAgGameSettings() { const tbody = document.getElementById('agGameSettingTbody'); const badge = document.getElementById('agGmActiveBadge'); const countEl = document.getElementById('agGameTableCount'); if (!tbody) return; try { const res = await fetch('/api/games/config?scope=admin'); const data = await res.json(); if (data.success && Array.isArray(data.games)) { agLoadedGamesList = data.games; renderAgGameTable(data.games); const activeCount = data.games.filter(g => g.is_active === 1).length; if (badge) { badge.className = activeCount === data.games.length ? 'hncb-status-pill-green' : 'hncb-status-pill-yellow'; badge.innerHTML = `🟢 ${activeCount} / ${data.games.length} Trò Chơi Đang Mở`; } if (countEl) { countEl.textContent = data.games.length; } } } catch (err) { tbody.innerHTML = `❌ Không thể tải dữ liệu cấu hình: ${err.message}`; } } function renderAgGameCards(games) { renderAgGameTable(games); } function renderAgGameTable(games) { const tbody = document.getElementById('agGameSettingTbody'); if (!tbody) return; tbody.innerHTML = ''; games.forEach((g, idx) => { const isOnline = g.is_active === 1; const bettingDaysArr = (g.betting_days || 'MON,TUE,WED,THU,FRI,SAT,SUN').split(',').map(d => d.trim().toUpperCase()); const daysMiniPillsHtml = AG_WEEK_DAYS.map(d => { const isSelected = bettingDaysArr.includes(d.key) || g.betting_days === 'DAILY' || g.betting_days === 'ALL'; if (isSelected) { return `${d.label}`; } else { return `${d.label}`; } }).join(''); const scheduleVi = formatScheduleDaysVi(g.schedule_days); const tr = document.createElement('tr'); tr.style.cursor = 'pointer'; tr.style.transition = 'background 0.15s ease'; tr.style.borderBottom = '1px solid #f1f5f9'; tr.onmouseover = function() { this.style.background = '#f8fafd'; }; tr.onmouseout = function() { this.style.background = ''; }; tr.onclick = function() { openGameEditDrawer(g.game_code); }; tr.innerHTML = ` #${idx + 1}
${g.icon || 'casino'}
${g.game_name}
${g.game_code} ${g.category || 'Xổ số'}
${scheduleVi}
schedule Giờ quay: ${g.draw_time}
${g.open_time} - ${g.close_time}
Chốt sổ T-${g.cutoff_minutes}m
${daysMiniPillsHtml}
${g.max_multiplier}x $${(g.max_liability_cad || 50000).toLocaleString()} CAD
${isOnline ? 'MỞ' : 'TẮT'}
`; tbody.appendChild(tr); }); } function openGameEditDrawer(gameCode) { const game = agLoadedGamesList.find(g => g.game_code === gameCode); if (!game) { if (typeof showToast === 'function') showToast('⚠️ Không tìm thấy trò chơi ' + gameCode); return; } currentEditingGameCode = gameCode; currentDrawerBettingDays = (game.betting_days || 'MON,TUE,WED,THU,FRI,SAT,SUN').split(',').map(d => d.trim().toUpperCase()); const sched = game.schedule_days || 'DAILY'; if (sched === 'DAILY' || sched === 'ALL') { currentDrawerScheduleDays = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']; } else { currentDrawerScheduleDays = sched.split(',').map(d => d.trim().toUpperCase()); } document.getElementById('drGameTitle').textContent = game.game_name; document.getElementById('drGameCodeBadge').textContent = game.game_code; document.getElementById('drGameIcon').textContent = game.icon || 'casino'; document.getElementById('drGameActiveSwitch').checked = (game.is_active === 1); renderDrawerScheduleDayPills(); renderDrawerDayPills(); document.getElementById('drEditDrawTime').value = game.draw_time || '22:30'; document.getElementById('drEditOpenTime').value = game.open_time || '06:00'; document.getElementById('drEditCloseTime').value = game.close_time || '22:15'; document.getElementById('drEditCutoff').value = game.cutoff_minutes || 15; document.getElementById('drEditSettleTime').value = game.settle_time || '22:45'; document.getElementById('drEditMultiplier').value = game.max_multiplier || 550; document.getElementById('drEditLiability').value = game.max_liability_cad || 50000; document.getElementById('drSpecWinProb').textContent = game.win_probability_pct || '--'; document.getElementById('drSpecRtp').textContent = (game.rtp_label || '--') + ' / ' + (game.house_edge_label || '--'); document.getElementById('drSpecRisk').textContent = (game.risk_weight || 3.0) + ' / 5.0'; document.getElementById('drEditNote').value = game.description || ''; const overlay = document.getElementById('gameEditDrawerOverlay'); if (overlay) { overlay.style.display = 'flex'; } } function closeGameEditDrawer(e) { if (e && e.target && e.target.id !== 'gameEditDrawerOverlay' && !e.target.closest('.drawer-btn-icon') && !e.target.closest('.m3-btn-outlined')) { return; } const overlay = document.getElementById('gameEditDrawerOverlay'); if (overlay) { overlay.style.display = 'none'; } } function renderDrawerScheduleDayPills() { const container = document.getElementById('drScheduleDaysPillsRow'); if (!container) return; container.innerHTML = AG_WEEK_DAYS.map(d => { const isSelected = currentDrawerScheduleDays.includes(d.key); return ` `; }).join(''); } function toggleDrawerScheduleDay(dayKey) { if (currentDrawerScheduleDays.includes(dayKey)) { if (currentDrawerScheduleDays.length <= 1) { if (typeof showToast === 'function') showToast('⚠️ Trò chơi phải có ít nhất 1 ngày mở thưởng trong tuần!'); return; } currentDrawerScheduleDays = currentDrawerScheduleDays.filter(d => d !== dayKey); } else { currentDrawerScheduleDays.push(dayKey); } renderDrawerScheduleDayPills(); } function setDrawerScheduleDays(mode) { if (mode === 'DAILY') { currentDrawerScheduleDays = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']; } else { currentDrawerScheduleDays = mode.split(',').map(d => d.trim().toUpperCase()); } renderDrawerScheduleDayPills(); } function quickSetDrawTime(timeStr) { const input = document.getElementById('drEditDrawTime'); if (input) { input.value = timeStr; if (typeof showToast === 'function') showToast('⏰ Đã đặt giờ mở thưởng: ' + timeStr); } } function renderDrawerDayPills() { const container = document.getElementById('drGameDaysPillsRow'); if (!container) return; container.innerHTML = AG_WEEK_DAYS.map(d => { const isSelected = currentDrawerBettingDays.includes(d.key); return ` `; }).join(''); } function toggleDrawerBettingDay(dayKey) { if (currentDrawerBettingDays.includes(dayKey)) { if (currentDrawerBettingDays.length <= 1) { if (typeof showToast === 'function') showToast('⚠️ Phải có ít nhất 1 ngày mở cược trong tuần!'); return; } currentDrawerBettingDays = currentDrawerBettingDays.filter(d => d !== dayKey); } else { currentDrawerBettingDays.push(dayKey); } renderDrawerDayPills(); } function setDrawerBettingDays(mode) { if (mode === 'ALL') { currentDrawerBettingDays = ['MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT', 'SUN']; } else if (mode === 'DRAW_ONLY') { currentDrawerBettingDays = [...currentDrawerScheduleDays]; } renderDrawerDayPills(); } function onDrawerSwitchChange(isChecked) { if (typeof showToast === 'function') showToast(isChecked ? '🟢 Sẽ BẬT trò chơi khi bấm Lưu' : '⚪ Sẽ TẮT trò chơi khi bấm Lưu'); } async function submitDrawerGameConfig() { if (!currentEditingGameCode) return; const drawTime = document.getElementById('drEditDrawTime')?.value?.trim() || '22:30'; const openTime = document.getElementById('drEditOpenTime')?.value?.trim(); const closeTime = document.getElementById('drEditCloseTime')?.value?.trim(); const cutoffMin = document.getElementById('drEditCutoff')?.value; const settleTime = document.getElementById('drEditSettleTime')?.value?.trim(); const mult = document.getElementById('drEditMultiplier')?.value; const liability = document.getElementById('drEditLiability')?.value; const isActive = document.getElementById('drGameActiveSwitch')?.checked ? 1 : 0; const note = document.getElementById('drEditNote')?.value?.trim(); let scheduleDaysStr = 'DAILY'; if (currentDrawerScheduleDays.length < 7) { scheduleDaysStr = currentDrawerScheduleDays.join(','); } const bettingDaysStr = currentDrawerBettingDays.join(','); try { if (typeof showToast === 'function') showToast(`⏳ Đang lưu cấu hình game ${currentEditingGameCode}...`); const res = await fetch(`/api/games/config/${currentEditingGameCode}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ schedule_days: scheduleDaysStr, draw_time: drawTime, open_time: openTime, close_time: closeTime, cutoff_minutes: cutoffMin ? parseInt(cutoffMin) : 15, settle_time: settleTime, max_multiplier: mult ? parseFloat(mult) : 550, max_liability_cad: liability ? parseFloat(liability) : 50000, is_active: isActive, betting_days: bettingDaysStr, description: note }) }); const data = await res.json(); if (data.success) { if (typeof showToast === 'function') showToast(`✅ Đã cập nhật thành công ngày giờ mở thưởng game ${currentEditingGameCode}!`); const overlay = document.getElementById('gameEditDrawerOverlay'); if (overlay) overlay.style.display = 'none'; loadAgGameSettings(); } else { if (typeof showToast === 'function') showToast('⚠️ ' + (data.message || 'Lỗi cập nhật cấu hình')); } } catch (err) { if (typeof showToast === 'function') showToast('❌ Lỗi kết nối máy chủ: ' + err.message); } } async function toggleAgGameActive(gameCode, isChecked) { try { const res = await fetch(`/api/games/config/${gameCode}`, { method: 'PUT', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ is_active: isChecked ? 1 : 0 }) }); const data = await res.json(); if (data.success) { if (typeof showToast === 'function') showToast(`✅ Đã ${isChecked ? 'BẬT' : 'TẮT'} trò chơi ${gameCode} thành công!`); loadAgGameSettings(); } else { if (typeof showToast === 'function') showToast('⚠️ ' + (data.message || 'Lỗi cập nhật trạng thái')); } } catch (err) { if (typeof showToast === 'function') showToast('❌ Không thể kết nối đến máy chủ: ' + err.message); } }
TK-CAD-XXX CHỜ QUAY
Chi tiết vé cược & Giám định mật mã bất biến
Khách Hàng
--
✓ Đã chép
Tuyến Đại Lý
--
✓ Đã chép
Kỳ Quay & Ngày
--
Trò Chơi & Kiểu Cược
--
Tiền Cược
--
Tỷ Lệ Thưởng
--
BỘ SỐ ĐẶT CƯỢC
--
✓ Đã chép
HẠN MỨC ĐÃ TRỪ
--
HMAC SHA-256
--
✓ Đã chép
Ghi chú vé cược
NHẬT KÝ HOẠT ĐỘNG 0 log
NGƯỜI DÙNG ▲▼
HÀNH ĐỘNG ▲▼
CHI TIẾT THAY ĐỔI
THỜI GIAN ▲▼
Mã QR Đối Soát Vé Cược
Quét mã kiểm tra toàn vẹn mật mã
QR Code Phóng To
HMAC: --