32 lines
685 B
PHP
32 lines
685 B
PHP
|
<?php
|
||
|
|
||
|
namespace app\controller\api\server;
|
||
|
|
||
|
use app\controller\api\Common;
|
||
|
use crmeb\basic\BaseController;
|
||
|
use think\App;
|
||
|
|
||
|
class Store extends BaseController
|
||
|
{
|
||
|
|
||
|
protected $merId;
|
||
|
|
||
|
public function __construct(App $app)
|
||
|
{
|
||
|
parent::__construct($app);
|
||
|
$this->merId = $this->request->route('merId');
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 生成二维码
|
||
|
*/
|
||
|
public function qrcode()
|
||
|
{
|
||
|
$common = app()->make(Common::class);
|
||
|
$siteUrl = systemConfig('site_url');
|
||
|
$data = $common->Qrcode(['code' => $siteUrl . 'download/index.html?code=mer_' . $this->merId, 'id' => $this->merId]);
|
||
|
return app('json')->success(['url' => $data]);
|
||
|
}
|
||
|
|
||
|
}
|