音乐播放器本地调试时映射本地地址

This commit is contained in:
Yutousama 2022-05-19 13:59:51 +08:00
parent ed659dfa65
commit 25e1ddca64

View File

@ -1,6 +1,9 @@
package com.yutou.nas.mybatis.model; package com.yutou.nas.mybatis.model;
import java.io.File;
import java.io.Serializable; import java.io.Serializable;
import com.yutou.nas.utils.AppTools;
import lombok.Data; import lombok.Data;
/** /**
@ -113,5 +116,14 @@ public class MusicData implements Serializable {
*/ */
private String md5; private String md5;
public String getFile() {
if(AppTools.isRuntimeSystemOfWindow()){
if (file != null) {
file = file.replace("/media/yutou/disk_lvm/public/", "Z:\\").replace("/", File.separator);
}
}
return file;
}
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
} }