From a24d9bd1fcda3ee555d94c26c1165d564ff4e671 Mon Sep 17 00:00:00 2001 From: cmz Date: Tue, 27 Aug 2024 22:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BD=95=E5=85=A5=E5=BA=8A?= =?UTF-8?q?=E4=BD=8D=E4=BF=A1=E6=81=AF=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Imports/BedFirstSheetImport.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Imports/BedFirstSheetImport.php b/app/Imports/BedFirstSheetImport.php index aa931fc..26fa382 100644 --- a/app/Imports/BedFirstSheetImport.php +++ b/app/Imports/BedFirstSheetImport.php @@ -255,7 +255,6 @@ class BedFirstSheetImport implements ToCollection, WithBatchInserts, WithChunkRe if ($e->getCode() === '23000') { // 唯一性约束错误处理逻辑 $errorMessage = "导入表格中存在已入库床位信息,请勿重复导入"; - dd($e); // 可以根据需要进行相关处理 throw new \Exception($errorMessage); } else {