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]); } }