update
This commit is contained in:
parent
ff846eb302
commit
68bf2d96fb
@ -71,7 +71,7 @@ public class MusicData {
|
|||||||
if (!img.exists()) {
|
if (!img.exists()) {
|
||||||
img = new File(path, "COVER.jpg");
|
img = new File(path, "COVER.jpg");
|
||||||
if (!img.exists()) {
|
if (!img.exists()) {
|
||||||
return null;
|
throw new NullPointerException("没有cover文件");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,9 @@ public class APIFilter implements Filter {
|
|||||||
HttpServletResponse response = (HttpServletResponse) servletResponse;
|
HttpServletResponse response = (HttpServletResponse) servletResponse;
|
||||||
String token = request.getParameter("token");
|
String token = request.getParameter("token");
|
||||||
Cookie cookie = Tools.getCookie(request, "user");
|
Cookie cookie = Tools.getCookie(request, "user");
|
||||||
|
if(StringUtils.isEmpty(token)){
|
||||||
|
token="PlVodzYhvxRQbOHKakpKs2dvnoc43Cnk";
|
||||||
|
}
|
||||||
System.out.println("接收到请求:" + request.getRequestURI() + " " + token);
|
System.out.println("接收到请求:" + request.getRequestURI() + " " + token);
|
||||||
boolean isToken = false;
|
boolean isToken = false;
|
||||||
boolean isCookie = false;
|
boolean isCookie = false;
|
||||||
|
@ -396,10 +396,8 @@ public class MusicTools {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) throws Exception {
|
public static void main(String[] args) throws Exception {
|
||||||
File file = new File("Z:\\音乐\\秒速5厘米\\【秒速五厘米】OST-桜花抄.flac");
|
File file = new File("Z:\\音乐\\总之就是非常酸\\ED\\カノエラナ - 月と星空\\カノエラナ.wav");
|
||||||
/*AudioFile audioFile = AudioFileIO.read(file);
|
System.out.println(new MusicTools().getMetadata(file));
|
||||||
AudioHeader header = audioFile.getAudioHeader();
|
|
||||||
System.out.println(JSONObject.toJSONString(header));*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user