修改邀请码生成

This commit is contained in:
luofei 2024-03-01 14:26:08 +08:00
parent d39bedf170
commit 5e364b201c
2 changed files with 2 additions and 1 deletions

View File

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

View File

@ -36,6 +36,7 @@ class ScanPay extends BaseController
public function qrcode()
{
$merId = $this->request->get('mer_id');
/** @var Common $common */
$common = app()->make(Common::class);
$siteUrl = systemConfig('site_url');
$user = $this->request->userInfo();