diff --git a/app/Http/Controllers/ConclusionController.php b/app/Http/Controllers/ConclusionController.php index 1fb52a9..eb5d911 100644 --- a/app/Http/Controllers/ConclusionController.php +++ b/app/Http/Controllers/ConclusionController.php @@ -109,7 +109,7 @@ class ConclusionController extends Controller // All pages: bottom-right corner, white background $sz = 22; $qrX = $size2['width'] - $sz - 8; - $qrY = $size2['height'] - $sz - 2; + $qrY = $size2['height'] - $sz - 6; $pdf->SetFillColor(255, 255, 255); $pdf->Rect($qrX - 1, $qrY - 1, $sz + 2, $sz + 2, 'F'); $pdf->Image($qrPath, $qrX, $qrY, $sz, $sz); @@ -129,7 +129,7 @@ class ConclusionController extends Controller $pdf->AddPage($sizeCert['orientation'], [$sizeCert['width'], $sizeCert['height']]); $pdf->useTemplate($tplCert); $cqX = $sizeCert['width'] - 22 - 8; - $cqY = $sizeCert['height'] - 22 - 2; + $cqY = $sizeCert['height'] - 22 - 6; $pdf->SetFillColor(255, 255, 255); $pdf->Rect($cqX - 1, $cqY - 1, 24, 24, 'F'); $pdf->Image($qrPath, $cqX, $cqY, 22, 22); @@ -138,8 +138,8 @@ class ConclusionController extends Controller $pdf->AddPage('P', 'A4'); $pdf->Image($certPath, 0, 0, 210, 297); $pdf->SetFillColor(255, 255, 255); - $pdf->Rect(210 - 22 - 8 - 1, 297 - 22 - 2 - 1, 24, 24, 'F'); - $pdf->Image($qrPath, 210 - 22 - 8, 297 - 22 - 2, 22, 22); + $pdf->Rect(210 - 22 - 8 - 1, 297 - 22 - 6 - 1, 24, 24, 'F'); + $pdf->Image($qrPath, 210 - 22 - 8, 297 - 22 - 6, 22, 22); } } } diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index f5fe1bb..303d21b 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -15,7 +15,7 @@ class AppServiceProvider extends ServiceProvider public function boot() { if (config('app.env') === 'production') { - URL::forceScheme('https'); + URL::forceScheme('http'); } } } diff --git a/storage/app/public/attachments/auto_7896/8f926ac3-2c78-4c4f-ae27-ceeb39a4ab96.pdf b/storage/app/public/attachments/auto_7896/8f926ac3-2c78-4c4f-ae27-ceeb39a4ab96.pdf new file mode 100644 index 0000000..ab3d992 Binary files /dev/null and b/storage/app/public/attachments/auto_7896/8f926ac3-2c78-4c4f-ae27-ceeb39a4ab96.pdf differ