From c5eab59718445d5f81b1de767bcf6685f7a5def3 Mon Sep 17 00:00:00 2001 From: evoxwht <442384644@qq.com> Date: Fri, 26 May 2023 10:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/other/QrcodeServices.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/other/QrcodeServices.php b/crmeb/app/services/other/QrcodeServices.php index 126a29e41..1ec0a6e1f 100644 --- a/crmeb/app/services/other/QrcodeServices.php +++ b/crmeb/app/services/other/QrcodeServices.php @@ -141,7 +141,7 @@ class QrcodeServices extends BaseServices /** @var SystemAttachmentServices $systemAttchment */ $systemAttchment = app()->make(SystemAttachmentServices::class); try { - $imageInfo = $systemAttchment->getInfo(['name'=>$name]); + $imageInfo = $systemAttchment->getInfo(['name' => $name]); $siteUrl = sys_config('site_url'); if (!$imageInfo) { $codeUrl = PosterServices::setHttpType($siteUrl . $link, request()->isSsl() ? 0 : 1);//二维码链接 @@ -165,6 +165,7 @@ class QrcodeServices extends BaseServices return ''; } } + /** * 获取二维码完整路径,不存在则自动生成 * @param string $name