Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1462 from chen310/dev
Browse files Browse the repository at this point in the history
feat: 签到进度接口 (#1384)
  • Loading branch information
Binaryify authored Feb 3, 2022
2 parents 39d3fb8 + 39708e4 commit 114b92b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
233. 最近播放-歌单
234. 最近播放-专辑
235. 最近播放-播客
236. 签到进度


## 安装
Expand Down Expand Up @@ -3693,6 +3694,15 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`

**调用例子 :** `/record/recent/dj?limit=1`

### 签到进度

说明 : 调用此接口 , 可获得签到进度

**可选参数 :** `moduleId` : 模块 id,默认为 '1207signin-1207signin'

**接口地址 :** `/signin/progress`

**调用例子 :** `/signin/progress`


## 离线访问此文档
Expand Down
6 changes: 6 additions & 0 deletions interface.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1595,3 +1595,9 @@ export function record_recent_dj(
limit?: number | string
} & RequestBaseConfig,
): Promise<Response>

export function signin_progress(
params: {
moduleId?: string
} & RequestBaseConfig,
): Promise<Response>
18 changes: 18 additions & 0 deletions module/signin_progress.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// 签到进度

module.exports = (query, request) => {
const data = {
moduleId: query.moduleId || '1207signin-1207signin',
}
return request(
'POST',
`https://music.163.com/weapi/act/modules/signin/v2/progress`,
data,
{
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
},
)
}

2 comments on commit 114b92b

@vercel
Copy link

@vercel vercel bot commented on 114b92b Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 114b92b Feb 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

netease-cloud-music-api-git-master-binaryify.vercel.app
neteasecloudmusicapi.vercel.app

Please sign in to comment.