修复mg歌词在某些情况下获取失败的问题

This commit is contained in:
lyswhut 2024-02-14 10:51:31 +08:00
parent 64add21726
commit fb7c6c913e
2 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,8 @@
### 修复
- 修复mg歌词在某些情况下获取失败的问题
### 其他 ### 其他
- 更新 React native 到 v0.73.4 - 更新 React native 到 v0.73.4

View File

@ -73,7 +73,7 @@ const mrcTools = {
if (!url) return Promise.resolve('') if (!url) return Promise.resolve('')
return this.getText(url) return this.getText(url)
}, },
getMusicInfo(songInfo) { async getMusicInfo(songInfo) {
return songInfo.mrcUrl == null return songInfo.mrcUrl == null
? getMusicInfo(songInfo.copyrightId) ? getMusicInfo(songInfo.copyrightId)
: songInfo : songInfo