Commit 4e53a3d7 by Li Feifei

debug

parent 82dac87e
Pipeline #15730 passed with stages
in 35 seconds
......@@ -141,7 +141,6 @@ func (f *ObtainFile) task(file *zip.File) error {
for i := 0; i < 3; i++ {
if imageInfo, err = f.taskJob(file); err == nil {
f.packed.ImageInfos = append(f.packed.ImageInfos, imageInfo)
f.packed.ImagesName.AddIfNotExist(imageInfo[0])
break
}
}
......@@ -168,6 +167,9 @@ func (f *ObtainFile) uploadPicture() error {
// 上传packed.json
func (f *ObtainFile) uploadPacked() error {
for i := 0; i <= f.pageCount; i++ {
f.packed.ImagesName.Add(fmt.Sprintf("%05d", i) +".png")
}
packedBytes, _ := json.Marshal(f.packed)
return oss.Upload(f.parser.splitUploadPath()+"packed.json", bytes.NewReader(packedBytes))
}
......
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