From ae41655c5d89c3f93861d050660f64977bf984ba Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Sat, 27 Dec 2025 13:55:44 +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=8A=E4=BC=A0=E7=A9=BA?= =?UTF-8?q?=E6=8C=87=E9=92=88=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- export_async.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/export_async.go b/export_async.go index 044b48b..1bb1270 100644 --- a/export_async.go +++ b/export_async.go @@ -143,8 +143,10 @@ func (e *ExportAsync) Run(ctx context.Context) (task_id string, cacheDir string, e.logTool.Errorf("导出panic:\n任务:%s,错误原因:%s", e.task.Id, _err) } e.release() - if e.uploader.Host != "" { - os.RemoveAll(tempDir) + if e.uploader != nil { + if e.uploader.Host != "" { + os.RemoveAll(tempDir) + } } cancel()