刘忠健 пре 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))