feat(debug): 报错页面增加AI友好格式和可配置一键复制功能

This commit is contained in:
augushong
2026-05-24 08:55:23 +08:00
parent 218810a7db
commit 0225e65975
2 changed files with 934 additions and 1 deletions

View File

@@ -32,7 +32,7 @@ return [
// 禁止URL访问的应用列表自动多应用模式有效
'deny_app_list' => ['common'],
// 异常页面的模板文件
'exception_tmpl' => Env::get('app_debug') == 1 ? app()->getThinkPath() . 'tpl/think_exception.tpl' : app_file_path('common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'think_exception.tpl'),
'exception_tmpl' => Env::get('app_debug') == 1 ? app_file_path('common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'think_exception_debug.tpl') : app_file_path('common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'think_exception.tpl'),
// 跳转页面的成功模板文件
'dispatch_success_tmpl' => app_file_path('common' . DIRECTORY_SEPARATOR . 'tpl' . DIRECTORY_SEPARATOR . 'dispatch_jump.tpl'),
// 跳转页面的失败模板文件