瀏覽代碼

PDF路径修改

xingzai 3 年之前
父節點
當前提交
add0fa7512
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      controllers/article.go

+ 1 - 1
controllers/article.go

@@ -862,7 +862,7 @@ func (this *ArticleController) Pdfwatermark() {
 	savePath := hzUploadDir + time.Now().Format("200601/20060102/")
 	savePath += fileName
 	//上传到阿里云
-	err = services.UploadFileToAliyun(fileName, fileLink, savePath)
+	err = services.UploadFileToAliyun(fileName, filePath, savePath)
 	if err != nil {
 		br.Msg = "下载失败"
 		br.ErrMsg = "文件上传失败,Err:" + err.Error()