音乐播放器本地调试时映射本地地址
This commit is contained in:
parent
ed659dfa65
commit
25e1ddca64
@ -1,6 +1,9 @@
|
||||
package com.yutou.nas.mybatis.model;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.yutou.nas.utils.AppTools;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
@ -113,5 +116,14 @@ public class MusicData implements Serializable {
|
||||
*/
|
||||
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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user