更新pc页面 和异常日志

This commit is contained in:
mkm 2024-03-01 10:16:13 +08:00
parent 360745360e
commit 878a7eae34
549 changed files with 700 additions and 680 deletions

View File

@ -23,6 +23,7 @@ use think\exception\HttpResponseException;
use think\exception\ValidateException;
use think\Response;
use Throwable;
use Exception;
/**
* 应用异常处理类
@ -50,8 +51,21 @@ class ExceptionHandle extends Handle
*/
public function report(Throwable $exception): void
{
$data = [
'file' => $exception->getFile(),
'line' => $exception->getLine(),
'message' => $this->getMessage($exception),
'code' => $this->getCode($exception),
];
$log = "[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]";
if ($this->app->config->get('log.record_trace')) {
$log .= PHP_EOL . $exception->getTraceAsString();
}
try {
$this->app->log->record($log, 'error');
} catch (Exception $e) {}
// 使用内置的方式记录异常日志
parent::report($exception);
// parent::report($exception);
}
/**

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.selWidth[data-v-95fe820a]{width:320px}

View File

@ -1 +0,0 @@
.selWidth[data-v-7d1aafac]{width:320px}

View File

@ -0,0 +1 @@
[data-v-37d06446] table .el-image{display:inline-block!important}

View File

@ -0,0 +1 @@
[data-v-ce74745a] table .el-image{display:inline-block!important}

View File

@ -1 +0,0 @@
[data-v-d696a35a] table .el-image{display:inline-block!important}

View File

@ -1 +0,0 @@
[data-v-13d03b58] table .el-image{display:inline-block!important}

Some files were not shown because too many files have changed in this diff Show More