From 9a56b2c5ebdfbe252eff1677bd694c5b2c8ad694 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BD=AD=E7=8B=B8=E8=8A=B1=E5=96=B5?= <94218819+helloplhm-qwq@users.noreply.github.com> Date: Sat, 21 Jan 2023 11:01:07 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=85=B7=E7=8B=97=E6=BA=90?= =?UTF-8?q?=E6=9C=AB=E9=A1=B5=E8=AF=84=E8=AE=BA=E4=B8=BA=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/utils/musicSdk/kg/comment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/utils/musicSdk/kg/comment.js b/src/renderer/utils/musicSdk/kg/comment.js index a2178e0b..b39dc449 100644 --- a/src/renderer/utils/musicSdk/kg/comment.js +++ b/src/renderer/utils/musicSdk/kg/comment.js @@ -4,7 +4,7 @@ import { decodeName, dateFormat2 } from '../../index' export default { _requestObj: null, _requestObj2: null, - async getComment({ hash }, page = 1, limit = 20) { + async getComment({ hash }, page = 1, limit = 50) { if (this._requestObj) this._requestObj.cancelHttp() const _requestObj = httpFetch(`http://comment.service.kugou.com/index.php?r=commentsv2/getCommentWithLike&code=fc4be23b4e972707f36b8a828a93ba8a&extdata=${hash}&p=${page}&pagesize=${limit}&ver=1.01&clientver=8373&appid=1001&kugouid=687373022&need_show_image=1`, { @@ -15,7 +15,7 @@ export default { const { body, statusCode } = await _requestObj.promise // console.log(body) if (statusCode != 200 || body.err_code !== 0) throw new Error('获取评论失败') - return { source: 'kg', comments: this.filterComment(body.list || []), total: body.count, page, limit, maxPage: Math.ceil(body.count / limit) || 1 } + return { source: 'kg', comments: this.filterComment(body.list || []), total: body.count, page, limit, maxPage: body.maxPage } }, async getHotComment({ hash, songmid }, page = 1, limit = 100) { // console.log(songmid)