刘忠健 преди 1 година
родител
ревизия
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))