|
@@ -15,7 +15,6 @@ import (
|
|
|
"pji_desktop_http/common/config"
|
|
|
"pji_desktop_http/common/entity"
|
|
|
"pji_desktop_http/common/util"
|
|
|
- "strings"
|
|
|
)
|
|
|
|
|
|
// CheckMapBufConsistency 检查请求id对应的mapBuf文件夹的一致性
|
|
@@ -409,11 +408,6 @@ func addDirToZip(dirPath string, zipWriter *zip.Writer) error {
|
|
|
|
|
|
header.Name = filepath.ToSlash(relPath)
|
|
|
|
|
|
- // 如果路径不是相对路径,添加一个前缀 `./`
|
|
|
- if !strings.HasPrefix(header.Name, "./") && !strings.HasPrefix(header.Name, "/") {
|
|
|
- header.Name = "./" + header.Name
|
|
|
- }
|
|
|
-
|
|
|
writer, err := zipWriter.CreateHeader(header)
|
|
|
if err != nil {
|
|
|
return err
|