chore: 增强异常输出并在初始化阶段支持管理员上下文模拟
这个提交包含在:
@@ -83,6 +83,13 @@ $langSet == 'en' && $lang = array_combine(array_keys($lang), array_keys($lang));
|
||||
</div>
|
||||
<div class="subheader">
|
||||
<?=$debug?$message:$lang['The page you are looking for is temporarily unavailable']?>
|
||||
<?php if (isset($exception) && $exception instanceof \Throwable): ?>
|
||||
<div style="font-size:13px;color:#c0392b;text-align:left;margin-top:15px;background:#f9f9f9;padding:10px;border-radius:4px;word-break:break-all;">
|
||||
<strong>Exception:</strong> <?=htmlspecialchars($exception->getMessage())?><br>
|
||||
<strong>File:</strong> <?=htmlspecialchars($exception->getFile())?>:<?=$exception->getLine()?><br>
|
||||
<pre style="font-size:11px;max-height:150px;overflow:auto;margin-top:5px;"><?=htmlspecialchars($exception->getTraceAsString())?></pre>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="hr"></div>
|
||||
<div class="context">
|
||||
|
||||
在新工单中引用
屏蔽一个用户