action) ? $this->action : ($this->action && $this->action != 'index' ? bees_decrypt($this->action) : 0); if ($id) { $data = db('app_pack')->where('id', $id)->find(); } if (!$id || !$data) { $this->error_message('应用不存在,或已停用'); } if ($data['period'] > 0 && $data['period'] < time()) { $this->error_message('应用已过期'); } $ua = strtolower($_SERVER['HTTP_USER_AGENT']); $ios13 = strstr($ua, 'iphone os 13') || strstr($ua, 'iphone os 14'); if ($ios13 && $data['type'] == 2) { if (is_ssl()) { $url = str_replace('http://', 'https://', $data['url']); } else { $url = str_replace('https://', 'http://', $data['url']); } $this->iframe_open($url); } else { redirect($data['url']); } } function error_message($msg = '哎呦,遇到错误了') { ?> 哎呦,遇到错误了