From 8a30d25a0606a7f1da738974b7ffc67a9f621a3c Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sat, 22 Aug 2020 12:28:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=AD=E7=82=B9=E7=BB=AD=E4=BC=A0=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E4=BA=8B=E5=8A=A1=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/exa_simple_uploader.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/service/exa_simple_uploader.go b/server/service/exa_simple_uploader.go index 06f067cf..e86ad75e 100644 --- a/server/service/exa_simple_uploader.go +++ b/server/service/exa_simple_uploader.go @@ -55,6 +55,10 @@ func MergeFileMd5(md5 string, fileName string) (err error) { //删除切片信息 err = tx.Delete(&model.ExaSimpleUploader{}, "identifier = ? AND is_done = ?", md5, false).Error // 添加文件信息 + if err != nil { + fmt.Println(err) + tx.Rollback() + } err = tx.Create(&model.ExaSimpleUploader{ Identifier: md5, IsDone: true,