Commit b41bb7fe by Li Feifei

debug

parent 4328603e
Pipeline #17123 passed with stages
in 1 minute 5 seconds
...@@ -8,6 +8,7 @@ import ( ...@@ -8,6 +8,7 @@ import (
"image" "image"
"image/jpeg" "image/jpeg"
"image/png" "image/png"
"log"
"os" "os"
"path" "path"
"regexp" "regexp"
...@@ -126,6 +127,8 @@ func (f *ObtainFile) taskJob(file *zip.File) ([]interface{}, error) { ...@@ -126,6 +127,8 @@ func (f *ObtainFile) taskJob(file *zip.File) ([]interface{}, error) {
info := img.Bounds() info := img.Bounds()
imageInfo := []interface{}{replaceName, info.Max.X, info.Max.Y} imageInfo := []interface{}{replaceName, info.Max.X, info.Max.Y}
log.Printf("imageInfo: %v", imageInfo)
return imageInfo, oss.Upload(f.parser.splitUploadPath()+"images/"+replaceName, bytes.NewReader(buf.Bytes())) return imageInfo, oss.Upload(f.parser.splitUploadPath()+"images/"+replaceName, bytes.NewReader(buf.Bytes()))
} }
......
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