From ed65e31cd844bc93193ddf43bfb5994d1f234938 Mon Sep 17 00:00:00 2001 From: wike2019 <200569525@qq.com> Date: Sun, 11 Jan 2026 13:11:38 +0800 Subject: [PATCH] =?UTF-8?q?MD5=20=E7=A2=B0=E6=92=9E=E5=8F=AF=E8=83=BD?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E4=B8=8D=E5=90=8C=E5=86=85=E5=AE=B9=E8=A2=AB?= =?UTF-8?q?=E8=AF=AF=E5=88=A4=E4=B8=BA=E5=90=8C=E4=B8=80=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/example/exa_breakpoint_continue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/service/example/exa_breakpoint_continue.go b/server/service/example/exa_breakpoint_continue.go index d2a85a338..ddb6227bc 100644 --- a/server/service/example/exa_breakpoint_continue.go +++ b/server/service/example/exa_breakpoint_continue.go @@ -24,7 +24,7 @@ func (e *FileUploadAndDownloadService) FindOrCreateFile(fileMd5 string, fileName cfile.FileName = fileName cfile.ChunkTotal = chunkTotal - if errors.Is(global.GVA_DB.Where("file_md5 = ? AND is_finish = ?", fileMd5, true).First(&file).Error, gorm.ErrRecordNotFound) { + if errors.Is(global.GVA_DB.Where("file_md5 = ? AND file_name = ? AND is_finish = ?", fileMd5, fileName, true).First(&file).Error, gorm.ErrRecordNotFound) { err = global.GVA_DB.Where("file_md5 = ? AND file_name = ?", fileMd5, fileName).Preload("ExaFileChunk").FirstOrCreate(&file, cfile).Error return file, err }