mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
优化生成小程序码
This commit is contained in:
parent
64a11a5873
commit
c5eab59718
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user