Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
修复使用post请求取消喜欢音乐会失败的问题 #1024
Browse files Browse the repository at this point in the history
  • Loading branch information
Binaryify committed Nov 13, 2020
1 parent 4def4dc commit 00b63cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/like.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
const { toBoolean } = require('../util')

module.exports = (query, request) => {
query.like = query.like == 'false' ? false : true
query.like = toBoolean(query.like)
const data = {
trackId: query.id,
like: query.like,
}
console.log(query.like)
return request(
'POST',
`https://music.163.com/weapi/radio/like?alg=${
Expand Down

0 comments on commit 00b63cf

Please sign in to comment.