api swagger ui update

This commit is contained in:
John Guo
2022-03-01 11:43:42 +08:00
parent 308e13a546
commit 88a9eef8a6
11 changed files with 104 additions and 26 deletions

View File

@ -76,7 +76,11 @@ func doZipPathWriter(path string, exclude string, zipWriter *zip.Writer, prefix
intlog.Printf(context.TODO(), `exclude file path: %s`, file)
continue
}
if err = zipFile(file, headerPrefix+gfile.Dir(file[len(path):]), zipWriter); err != nil {
subFilePath := file[len(path):]
if subFilePath != "" {
subFilePath = gfile.Dir(subFilePath)
}
if err = zipFile(file, headerPrefix+subFilePath, zipWriter); err != nil {
return err
}
}