|
@@ -168,13 +168,14 @@ func (this *ImageController) Base64Upload() {
|
|
|
}
|
|
|
fmt.Println("end convert", time.Now())
|
|
|
savePath = outFileName
|
|
|
- defer func() {
|
|
|
- os.Remove(svgPath)
|
|
|
- os.Remove(outFileName)
|
|
|
- }()
|
|
|
+ //defer func() {
|
|
|
+ // os.Remove(svgPath)
|
|
|
+ // os.Remove(outFileName)
|
|
|
+ //}()
|
|
|
saveToOssPath = hzUploadDir + time.Now().Format("200601/20060102/")
|
|
|
saveToOssPath += outFileName
|
|
|
//上传到阿里云
|
|
|
+ fmt.Println("upload:", savePath, saveToOssPath)
|
|
|
err = services.UploadFileToAliyun("", savePath, saveToOssPath)
|
|
|
if err != nil {
|
|
|
br.Msg = "文件上传失败"
|