From 3970ced88b5b456f03fe277c254ca761f05492e0 Mon Sep 17 00:00:00 2001
From: yn147 <2270338776@qq.com>
Date: 星期四, 26 十月 2023 14:00:12 +0800
Subject: [PATCH] 直播是否发布门户

---
 src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java b/src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java
index e67a090..6f983cd 100644
--- a/src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java
+++ b/src/main/java/com/qxueyou/scc/teach/res/service/impl/FileService.java
@@ -75,13 +75,17 @@
 			String destPath = getDestPath(name);
 			String fullPath = config.getResRootPath() + "/" + destPath;
 
+			//鎴彇涓婁紶鍗庝负浜戠殑缂栫爜
 			File fileRoot = new File(fullPath.substring(0, fullPath.lastIndexOf("/")));
 
 			if (!fileRoot.exists()) {
 				fileRoot.mkdirs();
 			}
+
+			//鍘嬬缉
 			FileUtils.copyInputStreamToFile(in, new File(fullPath));
 
+			//鍗庝负浜戠紪鐮佸瓨鍏ユ暟鎹簱
 			ResFile file = insertFileToDB(name, fullPath, destPath, getFileType(name));
 
 			return new Result(true, "success",

--
Gitblit v1.8.0