feat: realIP option

This commit is contained in:
a632079
2020-08-05 02:07:37 +08:00
parent 31d7e3941e
commit 9bd30a0ffb
178 changed files with 1734 additions and 906 deletions
+21 -17
View File
@@ -2,22 +2,26 @@
module.exports = (query, request) => {
const data = {
logs: JSON.stringify([{
action: 'play',
json: {
download: 0,
end: 'playend',
id: query.id,
sourceId: query.sourceid,
time: query.time,
type: 'song',
wifi: 0,
}
}])
logs: JSON.stringify([
{
action: 'play',
json: {
download: 0,
end: 'playend',
id: query.id,
sourceId: query.sourceid,
time: query.time,
type: 'song',
wifi: 0,
},
},
]),
}
return request(
'POST', `https://music.163.com/weapi/feedback/weblog`, data,
{crypto: 'weapi', cookie: query.cookie, proxy: query.proxy}
)
return request('POST', `https://music.163.com/weapi/feedback/weblog`, data, {
crypto: 'weapi',
cookie: query.cookie,
proxy: query.proxy,
realIP: query.realIP,
})
}