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

feat: 签到进度接口 (Binaryify#1384) #1462

Merged
merged 1 commit into from
Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
},
)
}