Skip to content

Commit 864c468

Browse files
author
pixel
committed
命名修复
1 parent b4e0dc8 commit 864c468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/zipfiles.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func ZipFiles(filename string, files []string, oldForm, newForm string) error {
4949
}
5050

5151
// 使用上面的FileInforHeader() 就可以把文件保存的路径替换成我们自己想要的了,如下面
52-
header.Name = strings.Replace(file, oldform, newform, -1)
52+
header.Name = strings.Replace(file, oldForm, newForm, -1)
5353

5454
// 优化压缩
5555
// 更多参考see http://golang.org/pkg/archive/zip/#pkg-constants

0 commit comments

Comments
 (0)