刘忠健 1 год назад
Родитель
Сommit
815096f615
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/app/api/controller/Qrcode.php

+ 1 - 1
api/app/api/controller/Qrcode.php

@@ -34,7 +34,7 @@ class Qrcode extends Base
         }
         //二维码生成的包:https://packagist.org/packages/endroid/qr-code
         $result = Builder::create()->writer(new PngWriter())->data($text)
-            ->setErrorCorrectionLevel(new ErrorCorrectionLevelHigh())
+            ->errorCorrectionLevel(new ErrorCorrectionLevelHigh())
             ->labelText($label)
             ->labelAlignment(new LabelAlignmentCenter())
             ->labelFont(new NotoSans($labelSize))