提交 60005769 编写于 作者: B binaryify

云贝完成任务接口增加`depositCode`参数 #995

上级 02cca66a
# 更新日志
### 3.45.2 | 2020.10.26
- 云贝完成任务接口增加`depositCode`参数
### 3.45.1 | 2020.10.25
- 修复代理配置失效的问题 [#992](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/992)
......
......@@ -2987,9 +2987,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
`userTaskId` : 任务id
**可选参数 :**
`depositCode`: 任务depositCode
**接口地址 :** `/yunbei/task/finish`
**调用例子 :** `/yunbei/task/finish?userTaskId=5146243240`
**调用例子 :** `/yunbei/task/finish?userTaskId=5146243240&depositCode=0`
### 云贝收入
说明 :登录后调用此接口可获取云贝收入
......@@ -2997,6 +3001,7 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
**可选参数 :** `limit`: 取出评论数量 , 默认为 10
`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*10, 其中 10 为 limit 的值
**接口地址 :** `/yunbei/tasks/receipt`
**调用例子 :** `/yunbei/tasks/receipt?limit=1`
......
......@@ -1302,5 +1302,8 @@ export function yunbei_today(params: RequestBaseConfig): Promise<Response>
export function yunbei_tasks_todo(params: RequestBaseConfig): Promise<Response>
export function yunbei_task_finish(
params: { userTaskId?: number | string } & RequestBaseConfig,
params: {
userTaskId: number | string
depositCode?: number | string
} & RequestBaseConfig,
): Promise<Response>
module.exports = (query, request) => {
const data = {
userTaskId: query.userTaskId,
depositCode: '0',
depositCode: query.depositCode || '0',
}
return request(
'POST',
......
{
"name": "NeteaseCloudMusicApi",
"version": "3.45.1",
"version": "3.45.2",
"description": "网易云音乐 NodeJS 版 API",
"scripts": {
"start": "node app.js",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册