Open ApolloZhu opened 6 years ago
i = https://www.bilibili.com/audio/music-service-c
addCollectMenu: function(t) {
return g("postform", i + "/web/collect/menu", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
cancelCollectMenu: function(t, e) {
return g("deleteform", i + "/web/collect/menu", t, e).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
checkCollectMenu: function(t) {
return g("get", i + "/web/collect/menu", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getLeadBoardList: function(t) {
return g("get", i + "/web/menu/rank", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getIncludeMenuInfo: function(t) {
return g("get", i + "/web/menu/6?sid=" + t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getHotMenuList: function(t) {
return g("get", i + "/web/menu/hit", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getCollectionList: function(t) {
return g("get", i + "/web/song/of-coll", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getErrorImages: function(t) {
return g("get", "//www.bilibili.com/activity/web/view/data/31", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getBanner: function(t) {
return g("get", i + "/web/home/banner", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getHitList: function(t) {
return g("get", i + "/web/home/hit-rank", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getALlHitList: function(t) {
return g("get", i + "/web/home/list-rank", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getActivityInfo: function(t) {
return g("get", "//www.bilibili.com/activity/subject/" + t.activityId + "?aid=" + t.sid).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getActivityToken: function(t) {
return g("get", "//www.bilibili.com/activity/account/token", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
voteActivity: function(t, e) {
return g("postform", "//www.bilibili.com/activity/likes/like/" + t.lid + "?oid=" + t.oid + "&action=1", e).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getCoinExp: function(t) {
return g("get", i + "/web/coin/exp", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getPayCoinNumber: function(t) {
return g("get", i + "/web/coin/audio", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
payCoin: function(t) {
return g("postform", i + "/web/coin/add", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
upperRecommend: function(t) {
return g("get", i + "/web/home/recommend/upper", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getCreationList: function(t) {
return g("get", i + "/web/collections/list", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getSongInCollection: function(t) {
return g("get", i + "/web/collections/songs-coll-ids", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getCollectInfo: function(t) {
return g("get", i + "/web/collections/info", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
collectSong: function(t) {
return g("postform", i + "/web/collections/song", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getSimilarSongs: function(t) {
return g("get", i + "/web/song/similar", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
deleteMyCollect: function(t, e) {
return g("deleteform", i + "/web/collections/del", t, e).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
getCreatedPlayList: function(t) {
return g("get", o + "/medialist/gateway/base/created", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
dealSourceInPlayList: function(t) {
return g("postform", o + "/medialist/gateway/coll/resource/deal", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
deleteMedia: function(t) {
return g("postform", o + "/medialist/gateway/coll/resource/batch/del", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
checkSourceCollected: function(t) {
return g("get", o + "/medialist/gateway/coll/resource/check", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
},
addPlayList: function(t) {
return g("postform", o + "/medialist/gateway/base/add", t).then(function(t) {
return 0 === t.code ? t.data : r.a.reject(t)
})
}
};
Collection https://www.bilibili.com/audio/am79409?type=2 Collection info https://www.bilibili.com/audio/music-service-c/web/menu/info?sid=79409 Collection content: https://www.bilibili.com/audio/music-service-c/web/song/of-menu?sid=79409&pn=1&ps=100
Whatever
Author Popular Songs https://www.bilibili.com/audio/music-service-c/web/song/upper-hit?uid=1887958&pn=1&ps=6 Related https://www.bilibili.com/audio/music-service-c/web/menu/song-contain?sid=418827&pn=1&ps=6 Lyrics https://www.bilibili.com/audio/music-service-c/web/song/lyric?sid=418827
热门歌单: https://www.bilibili.com/audio/music-service-c/web/menu/hit?pn=1&ps=6 热门榜单: https://www.bilibili.com/audio/music-service-c/web/menu/rank?pn=1&ps=6