From deee8a6dc17e4f382906db384787d0b0ffacca3b Mon Sep 17 00:00:00 2001 From: leekay0218 <272112456@qq.com> Date: Fri, 1 Apr 2022 14:36:12 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=A8=8B=E5=BA=8F=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8DDbException=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/adminapi/AdminApiExceptionHandle.php | 1 + crmeb/app/api/ApiExceptionHandle.php | 1 + crmeb/app/kefuapi/KefuApiExceptionHandle.php | 1 + 3 files changed, 3 insertions(+) diff --git a/crmeb/app/adminapi/AdminApiExceptionHandle.php b/crmeb/app/adminapi/AdminApiExceptionHandle.php index 80f2ca2db..495b82ad6 100644 --- a/crmeb/app/adminapi/AdminApiExceptionHandle.php +++ b/crmeb/app/adminapi/AdminApiExceptionHandle.php @@ -15,6 +15,7 @@ namespace app\adminapi; use crmeb\exceptions\AdminException; use crmeb\exceptions\ApiException; use crmeb\exceptions\AuthException; +use think\db\exception\DbException; use think\exception\Handle; use think\exception\ValidateException; use think\facade\Env; diff --git a/crmeb/app/api/ApiExceptionHandle.php b/crmeb/app/api/ApiExceptionHandle.php index baeba135f..a4ac3b060 100644 --- a/crmeb/app/api/ApiExceptionHandle.php +++ b/crmeb/app/api/ApiExceptionHandle.php @@ -15,6 +15,7 @@ namespace app\api; use crmeb\exceptions\AdminException; use crmeb\exceptions\ApiException; use crmeb\exceptions\AuthException; +use think\db\exception\DbException; use think\exception\Handle; use think\facade\Env; use think\facade\Log; diff --git a/crmeb/app/kefuapi/KefuApiExceptionHandle.php b/crmeb/app/kefuapi/KefuApiExceptionHandle.php index 1e3580628..2a5356e00 100644 --- a/crmeb/app/kefuapi/KefuApiExceptionHandle.php +++ b/crmeb/app/kefuapi/KefuApiExceptionHandle.php @@ -15,6 +15,7 @@ namespace app\kefuapi; use crmeb\exceptions\AdminException; use crmeb\exceptions\ApiException; use crmeb\exceptions\AuthException; +use think\db\exception\DbException; use think\exception\Handle; use think\exception\ValidateException; use think\facade\Config;