修复音乐返回异常问题

This commit is contained in:
Yutousama 2021-07-04 12:15:13 +08:00
parent 4b91b65d43
commit 4ffd94e3d1

View File

@ -132,8 +132,7 @@ public class MusicToolsServiceImpl implements IMusicToolsService {
if (main.isEmpty()) {
t2.setFile("root");
} else {
MusicData tmp = main.get(0);
t2.setFile(new File(tmp.getLastdir()).getAbsolutePath());
t2.setFile(new File(path).getParent());
}
com.yutou.nas.utils.Log.i("查询地址:" + path + " 设置返回地址:" + t2.getFile());
t2.setIsdir(1);