Browse Source

命名修复

pixel 4 years ago
parent
commit
a5b37768fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/utils/zipfiles.go

+ 1 - 1
server/utils/zipfiles.go

@@ -49,7 +49,7 @@ func ZipFiles(filename string, files []string, oldForm, newForm string) error {
 			}
 
 			// 使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
-			header.Name = strings.Replace(file, oldform, newform, -1)
+			header.Name = strings.Replace(file, oldForm, newForm, -1)
 
 			// 优化压缩
 			// 更多参考see http://golang.org/pkg/archive/zip/#pkg-constants