fix: make summary sheet QR point to verify_qr to avoid login redirect confusion

This commit is contained in:
Hamza-Ayed
2026-05-15 23:05:08 +03:00
parent e0dc1712ca
commit 3f0534ba0d

View File

@@ -190,8 +190,8 @@ try {
} catch(\Exception $e) { error_log('Logo Summary Error: ' . $e->getMessage()); }
// --- Add Clickable Website Link ---
$summarySheet->setCellValue("J1", 'musadaq.intaleqapp.com');
$summarySheet->getCell("J1")->getHyperlink()->setUrl('https://musadaq.intaleqapp.com/');
$summarySheet->setCellValue('J1', 'musadaq.intaleqapp.com/verify_qr');
$summarySheet->getCell('J1')->getHyperlink()->setUrl('https://musadaq.intaleqapp.com/index.php?route=verify_qr');
$summarySheet->getStyle("J1")->applyFromArray([
'font' => ['color' => ['argb' => 'FFFFFFFF'], 'underline' => true, 'size' => 9],
'alignment' => ['horizontal' => Alignment::HORIZONTAL_LEFT, 'vertical' => Alignment::VERTICAL_CENTER],
@@ -199,7 +199,7 @@ $summarySheet->getStyle("J1")->applyFromArray([
// --- Add QR Code to Summary Header ---
try {
$summaryUrl = "https://musadaq.intaleqapp.com/";
$summaryUrl = "https://musadaq.intaleqapp.com/index.php?route=verify_qr";
$qrApiUrl = "https://api.qrserver.com/v1/create-qr-code/?size=100x100&data=" . urlencode($summaryUrl);
$qrData = $downloadUrl($qrApiUrl);
if ($qrData) {