Browse Source

修改纠错组别

刘忠健 1 year ago
parent
commit
815096f615
1 changed files with 1 additions and 1 deletions
  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))