Commit 483fe4c8 by Li Feifei

test

parent e3f687af
Pipeline #14618 passed with stages
in 1 minute 1 second
......@@ -255,13 +255,14 @@ func Down(v *models.XyuSmallTempFiles) {
for _, file := range reader.File {
go func(file *zip.File) {
defer debug.FreeOSMemory()
err := pdfThumbnail(objectPath, file, bucket)
debug.FreeOSMemory()
if err != nil {
fmt.Println(objectPath + file.Name + "上传失败")
// 上传缩略图失败,重试3次
for i := 0; i < 3; i++ {
err = pdfThumbnail(objectPath, file, bucket)
debug.FreeOSMemory()
if err == nil {
ch1 <- true
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment