mirror of
https://gitlab.com/Binaryify/neteasecloudmusicapi.git
synced 2025-05-23 22:37:41 +08:00
云贝完成任务接口增加depositCode
参数 #995
This commit is contained in:
parent
02cca66a22
commit
60005769a1
@ -1,4 +1,7 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
### 3.45.2 | 2020.10.26
|
||||||
|
- 云贝完成任务接口增加`depositCode`参数
|
||||||
|
|
||||||
### 3.45.1 | 2020.10.25
|
### 3.45.1 | 2020.10.25
|
||||||
- 修复代理配置失效的问题 [#992](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/992)
|
- 修复代理配置失效的问题 [#992](https://github.com/Binaryify/NeteaseCloudMusicApi/issues/992)
|
||||||
|
|
||||||
|
@ -2987,9 +2987,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
|
|||||||
|
|
||||||
`userTaskId` : 任务id
|
`userTaskId` : 任务id
|
||||||
|
|
||||||
|
**可选参数 :**
|
||||||
|
|
||||||
|
`depositCode`: 任务depositCode
|
||||||
|
|
||||||
**接口地址 :** `/yunbei/task/finish`
|
**接口地址 :** `/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
|
**可选参数 :** `limit`: 取出评论数量 , 默认为 10
|
||||||
|
|
||||||
`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*10, 其中 10 为 limit 的值
|
`offset`: 偏移数量 , 用于分页 , 如 :( 评论页数 -1)\*10, 其中 10 为 limit 的值
|
||||||
|
|
||||||
**接口地址 :** `/yunbei/tasks/receipt`
|
**接口地址 :** `/yunbei/tasks/receipt`
|
||||||
|
|
||||||
**调用例子 :** `/yunbei/tasks/receipt?limit=1`
|
**调用例子 :** `/yunbei/tasks/receipt?limit=1`
|
||||||
|
5
interface.d.ts
vendored
5
interface.d.ts
vendored
@ -1302,5 +1302,8 @@ export function yunbei_today(params: RequestBaseConfig): Promise<Response>
|
|||||||
export function yunbei_tasks_todo(params: RequestBaseConfig): Promise<Response>
|
export function yunbei_tasks_todo(params: RequestBaseConfig): Promise<Response>
|
||||||
|
|
||||||
export function yunbei_task_finish(
|
export function yunbei_task_finish(
|
||||||
params: { userTaskId?: number | string } & RequestBaseConfig,
|
params: {
|
||||||
|
userTaskId: number | string
|
||||||
|
depositCode?: number | string
|
||||||
|
} & RequestBaseConfig,
|
||||||
): Promise<Response>
|
): Promise<Response>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module.exports = (query, request) => {
|
module.exports = (query, request) => {
|
||||||
const data = {
|
const data = {
|
||||||
userTaskId: query.userTaskId,
|
userTaskId: query.userTaskId,
|
||||||
depositCode: '0',
|
depositCode: query.depositCode || '0',
|
||||||
}
|
}
|
||||||
return request(
|
return request(
|
||||||
'POST',
|
'POST',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "NeteaseCloudMusicApi",
|
"name": "NeteaseCloudMusicApi",
|
||||||
"version": "3.45.1",
|
"version": "3.45.2",
|
||||||
"description": "网易云音乐 NodeJS 版 API",
|
"description": "网易云音乐 NodeJS 版 API",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node app.js",
|
"start": "node app.js",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user