controllers/fileController.go
@@ -562,6 +562,9 @@ } var rcFace *protomsg.Rect if err ==nil && len(faceArr) >0 { if len(faceArr) >1 { return "",nil, errors.New("TooManyFaces") } for _,r := range faceArr { //拿到人脸的坐标 rcFace = r.Pos.RcFace @@ -584,7 +587,6 @@ idx := strings.Index(field, "/") field = field[idx+1:] } fmt.Println("field:",field) ext := path.Ext(filename) fileNameOnly := strings.TrimSuffix(filename, ext)