Commit fdbd85fa by Li Feifei

add width hegight

parent f9c1a8a2
Pipeline #14948 passed with stages
in 1 minute 6 seconds
......@@ -237,14 +237,15 @@ func Down(v *models.XyuSmallTempFiles) {
log.Printf("file = %s \n", file.Name)
var err error
for i := 0; i < 3; i++ {
if imageinfo, err := pdfThumbnail(objectPath, file, bucket); err == nil {
imageInfos = append(imageInfos, imageinfo)
if imageInfo, err := pdfThumbnail(objectPath, file, bucket); err == nil {
imageInfos = append(imageInfos, imageInfo)
break
}
}
return err
})
}
log.Println("imageInfos == ", imageInfos)
err = Pool.Wait()
if err != nil {
......@@ -434,7 +435,6 @@ func CreateFileDataBase(room_file map[string]interface{}) error {
log.Println(err)
return err
}
log.Println(string(post_body))
map2 := make(map[string]interface{})
err = json.Unmarshal(post_body, &map2)
if err != nil {
......
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