moonsflyer 4 miesięcy temu
rodzic
commit
abe5b5a162
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      app/common/service/GiftCardQrCodeService.php

+ 3 - 3
app/common/service/GiftCardQrCodeService.php

@@ -26,7 +26,7 @@ class GiftCardQrCodeService
         try {
             // Generate regular QR code with cardPass as content
             $qrContent = $cardPass;
-            
+
             // Generate local temp file path
             $tempDir = runtime_path() . 'temp' . DIRECTORY_SEPARATOR;
             if (!is_dir($tempDir)) {
@@ -37,9 +37,9 @@ class GiftCardQrCodeService
             $tempFilePath = $tempDir . $tempFileName;
 
             // Generate 430x430 square QR code
-            QrCode::format('png')
-                ->size(430)
+            QrCode::size(430)
                 ->margin(2)
+                ->format('png')
                 ->generate($qrContent, $tempFilePath);
 
             Log::info('Regular QR code generated successfully', [