diff --git a/src/main/java/com/yutou/nas/mybatis/model/MusicData.java b/src/main/java/com/yutou/nas/mybatis/model/MusicData.java index d20e01a..cff2dfe 100644 --- a/src/main/java/com/yutou/nas/mybatis/model/MusicData.java +++ b/src/main/java/com/yutou/nas/mybatis/model/MusicData.java @@ -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; } \ No newline at end of file