mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
feat: realIP option
This commit is contained in:
+21
-17
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user