修复咪咕源无法播放的问题

pull/96/head
lyswhut 2019-10-29 13:17:06 +08:00
parent 91e4e9c2d5
commit f1bf274de1
2 changed files with 2 additions and 1 deletions

View File

@ -5,3 +5,4 @@
#### 修复
- 修复酷我源**搜索提示、排行榜**接口挂掉的问题
- 修复咪咕源无法播放的问题

View File

@ -11,7 +11,7 @@ const api_test = {
family: 4,
})
requestObj.promise = requestObj.promise.then(({ body }) => {
return body.code === 0 ? Promise.resolve({ type, url: encodeURI(body.data) }) : Promise.reject(new Error(requestMsg.fail))
return body.code === 0 ? Promise.resolve({ type, url: body.data }) : Promise.reject(new Error(requestMsg.fail))
})
return requestObj
},