panlei
2019-07-02 f8427a8ee8b3cb11a210aae9ec9e120cfc686010
insertdata/insertDataToEs.go
@@ -126,9 +126,8 @@
            }
            i := protomsg.Image{}
            err = proto.Unmarshal(bdata, &i)
            i1 := protomsg.Image{}
            i1 = util.Subimg(i.Data, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height))
            resp, err := util.PostFormBufferData(weedfsUrl, i1, uuid.NewV4().String())
            bytes := util.Subimg(i.Data, int(face.Location.X), int(face.Location.Y), int(face.Location.X+face.Location.Width), int(face.Location.Y+face.Location.Height))
            resp, err := util.PostFormBufferData1(weedfsUrl, bytes, uuid.NewV4().String())
            if err != nil {
               log.Println("上传小图出错")
            }