fix file delete

This commit is contained in:
ran.shang
2025-08-15 14:56:08 +08:00
parent bff0f19500
commit 305e57238b
2 changed files with 3 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ public class XfUtils {
} catch (Exception e) {
throw e;
} finally {
file.deleteOnExit();
file.delete();
}
} catch (Exception e) {
throw new BusinessException("语音听写异常:" + e.getMessage());
@@ -275,7 +275,7 @@ public class XfUtils {
} catch (Exception e) {
throw e;
} finally {
file.deleteOnExit();
file.delete();
}
}catch (Exception e) {
throw new BusinessException("语音听写异常:" + e.getMessage());