还原代码

This commit is contained in:
陈景阳
2019-09-03 09:06:04 +08:00
parent eb92d34f9b
commit cd78e6c745

View File

@@ -361,7 +361,7 @@ func OnFileUpload(message redis.Message) (err error) {
// 解压缩临时文件到目标文件夹
dstPath := filepath.Join(
viper.GetString("spider.path"),
strings.Replace(msg.FileName, ".zip", "", -1),
// strings.Replace(msg.FileName, ".zip", "", -1),
)
if err := utils.DeCompress(tmpFile, dstPath); err != nil {
log.Errorf(err.Error())