Skip to content

Commit 39708e4

Browse files
committed
feat: 签到进度接口 (Binaryify#1384)
1 parent 39d3fb8 commit 39708e4

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

docs/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@
251251
233. 最近播放-歌单
252252
234. 最近播放-专辑
253253
235. 最近播放-播客
254+
236. 签到进度
254255

255256

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

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

3697+
### 签到进度
3698+
3699+
说明 : 调用此接口 , 可获得签到进度
3700+
3701+
**可选参数 :** `moduleId` : 模块 id,默认为 '1207signin-1207signin'
3702+
3703+
**接口地址 :** `/signin/progress`
3704+
3705+
**调用例子 :** `/signin/progress`
36963706

36973707

36983708
## 离线访问此文档

interface.d.ts

+6
Original file line numberDiff line numberDiff line change
@@ -1595,3 +1595,9 @@ export function record_recent_dj(
15951595
limit?: number | string
15961596
} & RequestBaseConfig,
15971597
): Promise<Response>
1598+
1599+
export function signin_progress(
1600+
params: {
1601+
moduleId?: string
1602+
} & RequestBaseConfig,
1603+
): Promise<Response>

module/signin_progress.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// 签到进度
2+
3+
module.exports = (query, request) => {
4+
const data = {
5+
moduleId: query.moduleId || '1207signin-1207signin',
6+
}
7+
return request(
8+
'POST',
9+
`https://music.163.com/weapi/act/modules/signin/v2/progress`,
10+
data,
11+
{
12+
crypto: 'weapi',
13+
cookie: query.cookie,
14+
proxy: query.proxy,
15+
realIP: query.realIP,
16+
},
17+
)
18+
}

0 commit comments

Comments
 (0)