|
|
|
@ -79,8 +79,10 @@ func (f *FileService) Compress(args *ZipBlock, reply *string) error { |
|
|
|
// 等待上传完成
|
|
|
|
rest := <-taskId |
|
|
|
if strings.EqualFold(strings.ToLower(rest), "upok") { |
|
|
|
logger.Info("上传文件", zap.String("filename", zpFileName), zap.String("path", remotePath)) |
|
|
|
// 解压缩文件,文件存在的文化
|
|
|
|
util.DecompressZip(remotePath) |
|
|
|
logger.Info("解压缩文件", zap.String("filename", zpFileName), zap.String("path", remotePath)) |
|
|
|
// 上传完成后删除本地压缩包
|
|
|
|
// util.DeleteFile(ziprl)
|
|
|
|
} |
|
|
|
|