瀏覽代碼

修改纠错组别

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