fix https implementation and checkin

This commit is contained in:
Fanrouver
2026-02-02 11:33:19 +07:00
parent 93ff2fc3e0
commit c899a71fd8
5 changed files with 56 additions and 77 deletions

No files matched your search

+4 -4
View File
@@ -28,12 +28,12 @@ export const useThermalPrint = () => {
const generateQRCode = async (data: string): Promise<string> => {
try {
const qrDataUrl = await QRCode.toDataURL(data, {
errorCorrectionLevel: 'H', // High error correction for better scanning reliability
errorCorrectionLevel: 'M', // Medium error correction (better for standard cameras)
type: 'image/png',
quality: 1,
margin: 0.5, // Reduced margin untuk memperkecil Positioning Detection Markers
width: 100, // Ukuran QR Code untuk thermal printer 80mm
version: 3, // QR Code version 5 (37x37 modules)
margin: 2, // Added margin (quiet zone) for better scanner detection
width: 150, // Slightly larger width for better clarity
version: 3,
color: {
dark: '#000000',
light: '#FFFFFF'