Merge pull request #1293 from chen310/master

增加音乐人签到接口;修正文档错误
This commit is contained in:
binaryify 2021-07-16 10:49:37 +08:00 committed by GitHub
commit 214415a119
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 11 deletions

View File

@ -232,14 +232,15 @@
214. vip任务 214. vip任务
215. 领取vip成长值 215. 领取vip成长值
216. 歌手粉丝 216. 歌手粉丝
216. 数字专辑详情 217. 数字专辑详情
217. 数字专辑销量 218. 数字专辑销量
218. 音乐人数据概况 219. 音乐人数据概况
219. 音乐人播放趋势 220. 音乐人播放趋势
220. 音乐人任务 221. 音乐人任务
221. 账号云豆数 222. 账号云豆数
222. 领取云豆 223. 领取云豆
223. 获取 VIP 信息 224. 获取 VIP 信息
225. 音乐人签到
## 安装 ## 安装
@ -3441,7 +3442,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
### 音乐人任务 ### 音乐人任务
说明 : 音乐人登录后调用此接口 , 可获取音乐人任务 说明 : 音乐人登录后调用此接口 , 可获取音乐人任务。返回的数据中`status`字段为任务状态0表示任务未开始10表示任务正在进行中20表示任务完成但未领取云豆100表示任务完成并且已经领取了相应的云豆
**接口地址 :** `/musician/tasks` **接口地址 :** `/musician/tasks`
@ -3467,7 +3468,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1` **调用例子 :** `/musician/cloudbean/obtain?id=7036416928&period=1`
# 获取 VIP 信息 ### 获取 VIP 信息
说明: 登录后调用此接口,可获取当前 VIP 信息。 说明: 登录后调用此接口,可获取当前 VIP 信息。
@ -3475,6 +3476,14 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**调用例子 :** `/vip/info` **调用例子 :** `/vip/info`
### 音乐人签到
说明: 音乐人登录后调用此接口,可以完成“登录音乐人中心”任务,然后通过`/musician/cloudbean/obtain`接口可以领取相应的云豆。
**接口地址 :** `/musician/sign`
**调用例子 :** `/musician/sign`
## 离线访问此文档 ## 离线访问此文档
此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问 此文档同时也是 Progressive Web Apps(PWA), 加入了 serviceWorker, 可离线访问

4
interface.d.ts vendored
View File

@ -1505,7 +1505,7 @@ export function musician_play_trend(
} & RequestBaseConfig, } & RequestBaseConfig,
): Promise<Response> ): Promise<Response>
export function musician_tasksss(params: RequestBaseConfig): Promise<Response> export function musician_tasks(params: RequestBaseConfig): Promise<Response>
export function musician_cloudbean(params: RequestBaseConfig): Promise<Response> export function musician_cloudbean(params: RequestBaseConfig): Promise<Response>
@ -1517,3 +1517,5 @@ export function musician_cloudbean_obtain(
): Promise<Response> ): Promise<Response>
export function vip_info(params: RequestBaseConfig): Promise<Response> export function vip_info(params: RequestBaseConfig): Promise<Response>
export function musician_sign(params: RequestBaseConfig): Promise<Response>

17
module/musician_sign.js Normal file
View File

@ -0,0 +1,17 @@
// 音乐人签到
module.exports = (query, request) => {
const data = {}
return request(
'POST',
`https://music.163.com/weapi/creator/user/access`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}