public function createCacheFile($app, $isJs)
{
set_time_limit(0);
// 判断文件夹路径是否存在
if (!file_exists(LANG_PATH)) {
mkdir(LANG_PATH, 0777);
}
$map['appname'] = $app;
$map['filetype'] = $isJs;
$fields = $this->getLangType();
$data = $this->where($map)->findAll();
if ($isJs) {
$this->_getJavaScriptFile($app, $fields, $data);
} else {
$this->_getPhpFile($app, $fields, $data);
}
}