liuxiaolong
2019-08-16 fe514a350280f532921b644daee041f7d684343c
WeedFSClient.go
@@ -9,7 +9,6 @@
   "log"
   "mime/multipart"
   "net/http"
   "strings"
   "time"
)
@@ -64,12 +63,13 @@
         return "", err
      }
      filePath := m["fileUrl"].(string)
      if strings.Contains(filePath,"/"){
         idx := strings.Index(filePath,"/")
         filePath = filePath[idx+1:]
         return filePath,nil
      } else {
         return "",errors.New("file upload error")
      }
      return filePath,nil
      //if strings.Contains(filePath,"/"){
      //   idx := strings.Index(filePath,"/")
      //   filePath = filePath[idx+1:]
      //   return filePath,nil
      //} else {
      //   return "",errors.New("file upload error")
      //}
   }
}