This commit is contained in:
Yutousama 2022-04-11 12:57:11 +08:00
parent 4e3810b256
commit a07e31ebf7

View File

@ -48,7 +48,7 @@ public class BiliVideoController {
return json; return json;
} }
if (ServiceTools.getInstance().auth(request, user.getUser(), "/bili/video/get/")) { if (ServiceTools.getInstance().auth(request, user.getUser(), "/bili/video/get/")) {
File file = new File(ConfigTools.load(ConfigTools.CONFIG,"liveSavePath",String.class)+File.separator+"live"); File file = new File(ConfigTools.load(ConfigTools.CONFIG,"liveSavePath",String.class));
Log.i(file.getAbsolutePath()); Log.i(file.getAbsolutePath());
if (!file.exists() || Objects.requireNonNull(file.listFiles()).length == 0) { if (!file.exists() || Objects.requireNonNull(file.listFiles()).length == 0) {
json.put("code", 0); json.put("code", 0);
@ -111,7 +111,6 @@ public class BiliVideoController {
file = new File(ConfigTools.load(ConfigTools.CONFIG,"liveSavePath",String.class)+File.separator+"live" + File.separator + time + File.separator + fileName); file = new File(ConfigTools.load(ConfigTools.CONFIG,"liveSavePath",String.class)+File.separator+"live" + File.separator + time + File.separator + fileName);
} }
Log.i(file.getAbsolutePath()); Log.i(file.getAbsolutePath());
com.yutou.bilibili.Tools.Log.i(file.getAbsolutePath());
return AppTools.getFile(file); return AppTools.getFile(file);
} }
@ResponseBody @ResponseBody