Commit 240313e9 by Li Feifei

a

parents c93ae922 da5bd803
Pipeline #15312 passed with stages
in 33 seconds
......@@ -495,6 +495,7 @@ func pdfThumbnail(objectPath string, file *zip.File, bucket *oss.Bucket) ([]inte
imageInfo = append(imageInfo, fileName)
imageInfo = append(imageInfo, info.Max.X)
imageInfo = append(imageInfo, info.Max.Y)
fc1, err := file.Open()
if err != nil {
return nil, err
......@@ -502,6 +503,7 @@ func pdfThumbnail(objectPath string, file *zip.File, bucket *oss.Bucket) ([]inte
defer fc1.Close()
return imageInfo, bucket.PutObject(objectPathName+fileName, fc1)
}
func uploadPacked(bucket *oss.Bucket, filename, contentHash,
......
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