Update: 2026-05-15 15:44:31
This commit is contained in:
@@ -367,7 +367,7 @@ foreach ($invoices as $invIdx => $inv) {
|
||||
|
||||
// --- Add Verification QR Code ---
|
||||
try {
|
||||
$verifyUrl = "https://musadaq.intaleqapp.com/index.php?route=v1/verify&id=" . $inv['id'];
|
||||
$verifyUrl = "https://musadaq.intaleqapp.com/index.php?route=verify&id=" . $inv['id'];
|
||||
$qrApiUrl = "https://api.qrserver.com/v1/create-qr-code/?size=100x100&data=" . urlencode($verifyUrl);
|
||||
$qrData = $downloadUrl($qrApiUrl);
|
||||
if ($qrData) {
|
||||
|
||||
@@ -16,6 +16,7 @@ error_log("Router: Resolved route '{$route}'");
|
||||
|
||||
// Route map: route => [allowed_method, module_file]
|
||||
$routes = [
|
||||
'verify' => ['GET', 'invoices/verify_public.php'],
|
||||
'v1/auth/login' => ['POST', 'auth/login.php'],
|
||||
'v1/auth/refresh' => ['POST', 'auth/refresh.php'],
|
||||
'v1/auth/logout' => ['POST', 'auth/logout.php'],
|
||||
|
||||
@@ -3039,7 +3039,7 @@
|
||||
getQrSrc(inv) {
|
||||
if (!inv) return '';
|
||||
if (inv.jofotara?.qr_image_uri) return inv.jofotara.qr_image_uri;
|
||||
const verifyUrl = `https://musadaq.intaleqapp.com/index.php?route=v1/verify&id=${inv.id}`;
|
||||
const verifyUrl = 'https://musadaq.intaleqapp.com/index.php?route=verify&id=' + inv.id;
|
||||
const qr = new QRious({ value: verifyUrl, size: 300, level: 'H' });
|
||||
return qr.toDataURL();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user