|
@@ -771,8 +771,8 @@ func (this *ArticleController) Pdfwatermark() {
|
|
|
}
|
|
|
filePathName := strings.TrimLeft(pdfResult.FilePath, ".")
|
|
|
filePathOldName := strings.TrimLeft(pdfResult.FileOldPath, ".")
|
|
|
- filePath := "/home/code/python/hz_cygx_pdf/pdf" + filePathName
|
|
|
- filePathOld := "/home/code/python/hz_cygx_pdf/pdf" + filePathOldName
|
|
|
+ filePath := "/home/code/python/hz_cygx_pdf" + filePathName
|
|
|
+ filePathOld := "/home/code/python/hz_cygx_pdf" + filePathOldName
|
|
|
randStr := utils.GetRandStringNoSpecialChar(28)
|
|
|
fileName := randStr + ".pdf"
|
|
|
//上传到阿里云
|