application/manage/exception/Http.php
public function render(\Exception $e)
    {
        // 父类处理
        if (Config::get('app_debug')) {
            return parent::render($e);
        }
        parent::render($e);
        
        try {
            $request = Request::instance();
            $msg = $e->getMessage();
            
            if ($request->isAjax()) {
                $data = Format::formatJump(0, $msg);
                $response = Response::create($data, 'json');
            } else {
                
                $view = new View();
                
                // 标题
                $view->assign('site_title', $msg);
                
                // 跳转
                $jump = Format::formatJump(0, $msg);
                $view->assign('jump', $jump);
                
                // 主题
                $view_path = dirname(__DIR__) . '/view/' . Config::get('manage_theme') . '/';
                $view->config('view_path', $view_path);
                
                $data = $view->fetch('common/jump');
                
                $response = Response::create($data);
            }
        } catch (\Exception $e) {
            return parent::render($e);
        }
        
        return $response;
    }
public function render(\Exception $e)
    {
        // 父类处理
        if (Config::get('app_debug')) {
            return parent::render($e);
        }
        parent::render($e);
        
        try {
            $request = Request::instance();
            $msg = $e->getMessage();
            
            if ($request->isAjax()) {
                $data = Format::formatJump(0, $msg);
                $response = Response::create($data, 'json');
            } else {
                
                $view = new View();
                
                // 标题
                $view->assign('site_title', $msg);
                
                // 跳转
                $jump = Format::formatJump(0, $msg);
                $view->assign('jump', $jump);
                
                // 主题
                $view_path = dirname(__DIR__) . '/view/' . Config::get('manage_theme') . '/';
                $view->config('view_path', $view_path);
                
                $data = $view->fetch('common/jump');
                
                $response = Response::create($data);
            }
        } catch (\Exception $e) {
            return parent::render($e);
        }
        
        return $response;
    }
!CodeTemplates.overridecomment.nonjd!

@see \think\exception\Handle::render()