WeedFSClient.go | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
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") //} } }