This commit is contained in:
lewis 2024-01-21 21:30:27 +08:00
commit 83b1f50e6c

View File

@ -644,7 +644,7 @@ class Common extends BaseController
public function Qrcode($data)
{
$siteUrl = systemConfig('site_url');
$name = md5('orcode' . date('Ymd')) . '.png';
$name = 'orcode'.$data['id'] .md5(date('Ymd')) . '.png';
$attachmentRepository = app()->make(AttachmentRepository::class);
$imageInfo = $attachmentRepository->getWhere(['attachment_name' => $name]);