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;