优化异步导出,修复上传空指针判断

This commit is contained in:
renzhiyuan 2025-12-27 13:55:44 +08:00
parent 9cf8777a16
commit ae41655c5d
1 changed files with 4 additions and 2 deletions

View File

@ -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()