mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Handle类支持异常的多语言 Lang类增加has方法 增加核心中文语言包
This commit is contained in:
@@ -255,7 +255,7 @@ class TagLib
|
||||
$must = explode(',', $tag['must']);
|
||||
foreach ($must as $name) {
|
||||
if (!isset($result[$name])) {
|
||||
throw new Exception('_PARAM_ERROR_:' . $name);
|
||||
throw new Exception('tag attr must:' . $name);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -272,7 +272,7 @@ class TagLib
|
||||
$result['expression'] = rtrim($result['expression'], '/');
|
||||
$result['expression'] = trim($result['expression']);
|
||||
} elseif (empty($this->tags[$name]) || !empty($this->tags[$name]['attr'])) {
|
||||
throw new Exception('_XML_TAG_ERROR_:' . $name);
|
||||
throw new Exception('tag error:' . $name);
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
|
||||
@@ -30,7 +30,7 @@ class File
|
||||
}
|
||||
// 生成模板缓存文件
|
||||
if (false === file_put_contents($cacheFile, $content)) {
|
||||
throw new Exception('cache write error :' . $cacheFile, 11602);
|
||||
throw new Exception('cache write error:' . $cacheFile, 11602);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -46,7 +46,7 @@ class Sae
|
||||
// 添加写入时间
|
||||
$content = time() . $content;
|
||||
if (!$this->mc->set($cacheFile, $content, MEMCACHE_COMPRESSED, 0)) {
|
||||
throw new Exception('sae mc write error :' . $cacheFile);
|
||||
throw new Exception('sae mc write error:' . $cacheFile);
|
||||
} else {
|
||||
$this->contents[$cacheFile] = $content;
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user