protected function buildHtml($content)
{
//规则验证
$html = C('html');
if (isset($html[ACTION_CODE]) && $html[ACTION_CODE] == true) {
$htmlpath = CORE_RUN_PATH . '/htmlcache/';
$htmlfile = str_replace('/', '_', ACTION_CODE) . '.html';
// 如果静态目录不存在 则创建
if (!is_dir($htmlpath)) {
mkdir($htmlpath, 0777, true);
}
return file_put_contents($htmlpath . '/' . $htmlfile, $content);
}
}