domain(); $redis = \think\facade\Cache::store('redis'); $keyDomain = md5($domain . $this->version); $content = $redis->get($keyDomain); if(!empty($content)){ return $content; } else { $strBody = ''; $txt = file_get_contents(app()->getRootPath() . 'public/index.html'); preg_match('/\/is', $txt, $match); if (!empty($match[0])) { $strBody = $match[0]; } $str = '