From 079a16bdb748869fd345fd2e201a0d5d14fcee81 Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Thu, 25 Dec 2025 17:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=82=E6=AD=A5=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=EF=BC=8C=E4=BF=AE=E5=A4=8D=E4=B8=B4=E6=97=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E6=B8=85=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- export_async.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/export_async.go b/export_async.go index 6383915..ccd776d 100644 --- a/export_async.go +++ b/export_async.go @@ -151,7 +151,10 @@ func (e *ExportAsync) Run(ctx context.Context) (string, error) { e.logTool.Errorf("导出panic:\n任务:%s,错误原因:%s", e.task.Id, _err) } e.release() - os.RemoveAll(tempDir) + if e.uploader.Host != "" { + os.RemoveAll(tempDir) + } + cancel() }() source, err := e.export(subCtx, tempDir)