mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
异常类规范 增加异常类 改进Query类的value和column的缓存冲突问题
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
|
||||
namespace think\view\driver;
|
||||
|
||||
use think\Exception;
|
||||
use think\exception\TemplateNotFoundException;
|
||||
use think\Log;
|
||||
use think\Request;
|
||||
use think\Template;
|
||||
@@ -72,7 +72,7 @@ class Think
|
||||
}
|
||||
// 模板不存在 抛出异常
|
||||
if (!is_file($template)) {
|
||||
throw new Exception('template file not exists:' . $template, 10700);
|
||||
throw new TemplateNotFoundException('template file not exists:' . $template);
|
||||
}
|
||||
// 记录视图信息
|
||||
APP_DEBUG && Log::record('[ VIEW ] ' . $template . ' [ ' . var_export(array_keys($data), true) . ' ]', 'info');
|
||||
|
||||
Reference in New Issue
Block a user