From 631cd00d17e5c8db4db2fbd1841fa14e50b2f8df Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Fri, 6 Jun 2025 15:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/command/CheckOrderDispatchGotCommand.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/application/common/command/CheckOrderDispatchGotCommand.php b/application/common/command/CheckOrderDispatchGotCommand.php index 6aa3477..c72c85c 100644 --- a/application/common/command/CheckOrderDispatchGotCommand.php +++ b/application/common/command/CheckOrderDispatchGotCommand.php @@ -57,6 +57,11 @@ class CheckOrderDispatchGotCommand extends Command }); }catch (Exception $exception){ echo $exception->getMessage(). PHP_EOL; + Db::name('debug_log')->insert([ + 'title' => $this->title, + 'content' => '未接,错误内容:'.$exception->getMessage().',错误行:'. $exception->getLine().',错误文件:'. $exception->getFile(), + 'create_time' => date('Y-m-d H:i:s', time()) + ]); } } @@ -76,7 +81,7 @@ class CheckOrderDispatchGotCommand extends Command }catch (Exception $exception){ Db::name('debug_log')->insert([ 'title' => $this->title, - 'content' => '错误内容:'.$exception->getMessage().',错误行:'. $exception->getLine().',错误文件:'. $exception->getFile(), + 'content' => '超时,错误内容:'.$exception->getMessage().',错误行:'. $exception->getLine().',错误文件:'. $exception->getFile(), 'create_time' => date('Y-m-d H:i:s', time()) ]); echo $exception->getMessage(). PHP_EOL;