You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
619 B
21 lines
619 B
// 签到
|
|
|
|
/*
|
|
0为安卓端签到 3点经验, 1为网页签到,2点经验
|
|
签到成功 {'android': {'point': 3, 'code': 200}, 'web': {'point': 2, 'code': 200}}
|
|
重复签到 {'android': {'code': -2, 'msg': '重复签到'}, 'web': {'code': -2, 'msg': '重复签到'}}
|
|
未登录 {'android': {'code': 301}, 'web': {'code': 301}}
|
|
*/
|
|
|
|
module.exports = (query, request) => {
|
|
const data = {
|
|
type: query.type || 0,
|
|
};
|
|
return request('POST', `https://music.163.com/weapi/point/dailyTask`, data, {
|
|
crypto: 'weapi',
|
|
cookie: query.cookie,
|
|
proxy: query.proxy,
|
|
realIP: query.realIP,
|
|
});
|
|
};
|