Procházet zdrojové kódy

打印文件路径

limin před 7 roky
rodič
revize
50dd2676d5

+ 3 - 1
src/main/java/com/goafanti/common/controller/BaseApiController.java

@@ -263,8 +263,10 @@ public class BaseApiController extends BaseController {
 		String fileName = mf.getName() + System.nanoTime() + ".mp4" ;
 		if (!files.isEmpty()) {
 			try {
-				mf.transferTo(new File(fileName));
+				File f = new File(fileName);
+				mf.transferTo(f);
 				LoggerUtils.debug(getClass(), fileName + " 文件上传成功");
+				LoggerUtils.debug(getClass(), f.getAbsolutePath() + " 文件上传成功");
 			} catch (IllegalStateException | IOException e) {
 				LoggerUtils.error(getClass(), "文件上传失败", e);
 				res.getError().add(buildError("", "文件上传失败!"));