From 2bd00f932fd049753f18ce203a0160a42c63298f Mon Sep 17 00:00:00 2001 From: chen_10 <1803012703@qq.com> Date: Thu, 20 Jan 2022 08:59:10 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E5=8F=91=E9=80=81/=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=AF=84=E8=AE=BA=E3=80=81=E7=82=B9=E8=B5=9E=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=20(Binaryify#1442)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/comment.js | 2 +- module/resource_like.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/comment.js b/module/comment.js index 9395bf3..389e9e3 100644 --- a/module/comment.js +++ b/module/comment.js @@ -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', diff --git a/module/resource_like.js b/module/resource_like.js index de285b6..920b94f 100644 --- a/module/resource_like.js +++ b/module/resource_like.js @@ -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 From 3a914fb2405c75300ddf20671af8c3d911e21380 Mon Sep 17 00:00:00 2001 From: chen_10 <1803012703@qq.com> Date: Thu, 20 Jan 2022 09:02:58 +0800 Subject: [PATCH 2/2] =?UTF-8?q?doc:=20=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index 45611d4..66c2234 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1992,7 +1992,7 @@ mp3url 不能直接用 , 可通过 `/song/url` 接口传入歌曲 id 获取具 ``` -`t`: 操作,1 为点赞,其他未取消点赞 +`t`: 操作,1 为点赞,其他为取消点赞 `id`: 资源 id