Skip to content

Commit b1e0a54

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

File tree

3 files changed

+84
-52
lines changed

3 files changed

+84
-52
lines changed

docs/README.md

+8
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,13 @@ type='1009' 获取其 id, 如`/search?keywords= 代码时间 &type=1009`
36933694

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

3697+
### 签到进度
3698+
3699+
说明 : 调用此接口 , 可获得签到进度
3700+
3701+
**接口地址 :** `/signin/progress`
3702+
3703+
**调用例子 :** `/signin/progress`
36963704

36973705

36983706
## 离线访问此文档

interface.d.ts

+58-52
Original file line numberDiff line numberDiff line change
@@ -152,58 +152,58 @@ export function artist_list(
152152
params: {
153153
area: ArtistArea
154154
initial?:
155-
| 'a'
156-
| 'b'
157-
| 'c'
158-
| 'd'
159-
| 'e'
160-
| 'f'
161-
| 'g'
162-
| 'h'
163-
| 'i'
164-
| 'j'
165-
| 'k'
166-
| 'l'
167-
| 'm'
168-
| 'n'
169-
| 'o'
170-
| 'p'
171-
| 'q'
172-
| 'r'
173-
| 's'
174-
| 't'
175-
| 'u'
176-
| 'v'
177-
| 'w'
178-
| 'x'
179-
| 'y'
180-
| 'z'
181-
| 'A'
182-
| 'B'
183-
| 'C'
184-
| 'D'
185-
| 'E'
186-
| 'F'
187-
| 'G'
188-
| 'H'
189-
| 'I'
190-
| 'J'
191-
| 'K'
192-
| 'L'
193-
| 'M'
194-
| 'N'
195-
| 'O'
196-
| 'P'
197-
| 'Q'
198-
| 'R'
199-
| 'S'
200-
| 'T'
201-
| 'U'
202-
| 'V'
203-
| 'W'
204-
| 'X'
205-
| 'Y'
206-
| 'Z'
155+
| 'a'
156+
| 'b'
157+
| 'c'
158+
| 'd'
159+
| 'e'
160+
| 'f'
161+
| 'g'
162+
| 'h'
163+
| 'i'
164+
| 'j'
165+
| 'k'
166+
| 'l'
167+
| 'm'
168+
| 'n'
169+
| 'o'
170+
| 'p'
171+
| 'q'
172+
| 'r'
173+
| 's'
174+
| 't'
175+
| 'u'
176+
| 'v'
177+
| 'w'
178+
| 'x'
179+
| 'y'
180+
| 'z'
181+
| 'A'
182+
| 'B'
183+
| 'C'
184+
| 'D'
185+
| 'E'
186+
| 'F'
187+
| 'G'
188+
| 'H'
189+
| 'I'
190+
| 'J'
191+
| 'K'
192+
| 'L'
193+
| 'M'
194+
| 'N'
195+
| 'O'
196+
| 'P'
197+
| 'Q'
198+
| 'R'
199+
| 'S'
200+
| 'T'
201+
| 'U'
202+
| 'V'
203+
| 'W'
204+
| 'X'
205+
| 'Y'
206+
| 'Z'
207207
type?: ArtistType
208208
} & MultiPageConfig &
209209
RequestBaseConfig,
@@ -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)