request->url(true), $https ? 0 : 1); $url .= (strpos($url, '?') === false ? '?' : '&'); $url .= 'inner_frame=1'; return \think\facade\View::fetch('/mobile/view', compact('siteName', 'url')); } public function h5() { if ((!$this->request->isMobile()) && (!$this->request->param('inner_frame')) && !strpos($this->request->server('HTTP_USER_AGENT'), 'MicroMessenger')) return $this->mobile(); $DB = DIRECTORY_SEPARATOR; return view(app()->getRootPath() . 'public' . $DB . 'index.html'); } }