修改邀请码生成
This commit is contained in:
parent
d39bedf170
commit
5e364b201c
@ -644,7 +644,7 @@ class Common extends BaseController
|
|||||||
public function Qrcode($data)
|
public function Qrcode($data)
|
||||||
{
|
{
|
||||||
$siteUrl = systemConfig('site_url');
|
$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);
|
$attachmentRepository = app()->make(AttachmentRepository::class);
|
||||||
$imageInfo = $attachmentRepository->getWhere(['attachment_name' => $name]);
|
$imageInfo = $attachmentRepository->getWhere(['attachment_name' => $name]);
|
||||||
|
|
||||||
|
@ -36,6 +36,7 @@ class ScanPay extends BaseController
|
|||||||
public function qrcode()
|
public function qrcode()
|
||||||
{
|
{
|
||||||
$merId = $this->request->get('mer_id');
|
$merId = $this->request->get('mer_id');
|
||||||
|
/** @var Common $common */
|
||||||
$common = app()->make(Common::class);
|
$common = app()->make(Common::class);
|
||||||
$siteUrl = systemConfig('site_url');
|
$siteUrl = systemConfig('site_url');
|
||||||
$user = $this->request->userInfo();
|
$user = $this->request->userInfo();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user