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

Commit

Permalink
Merge pull request #1446 from chen310/dev
Browse files Browse the repository at this point in the history
fix: 发送/删除评论、点赞失败
  • Loading branch information
Binaryify authored Jan 20, 2022
2 parents 8ea1dc5 + 3a914fb commit 5daa11b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1992,7 +1992,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具
```


`t`: 操作,1 为点赞,其他未取消点赞
`t`: 操作,1 为点赞,其他为取消点赞

`id`: 资源 id

Expand Down
2 changes: 1 addition & 1 deletion module/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { resourceTypeMap } = require('../util/config.json')
// 发送与删除评论

module.exports = (query, request) => {
query.cookie.os = 'pc'
query.cookie.os = 'android'
query.t = {
1: 'add',
0: 'delete',
Expand Down
2 changes: 1 addition & 1 deletion module/resource_like.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// 点赞与取消点赞资源

module.exports = (query, request) => {
query.cookie.os = 'pc'
query.cookie.os = 'android'
query.t = query.t == 1 ? 'like' : 'unlike'
query.type = {
1: 'R_MV_5_', // MV
Expand Down

2 comments on commit 5daa11b

@vercel
Copy link

@vercel vercel bot commented on 5daa11b Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

netease-cloud-music-api – ./docs

neteasecloudmusicapi.vercel.app
netease-cloud-music-api-git-master-binaryify.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5daa11b Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.