From 3fd33176a485fb21897b38b2279cb477b6fa1d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Wed, 20 Nov 2024 19:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=8F=EF=B8=8F=20=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E9=9D=9E=E7=A9=BAID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/data/schema/uigf-schema.json | 5 ++++- src/data/schema/uigf4-schema.json | 5 ++++- src/plugins/Mys/request/postReq.ts | 5 +++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/data/schema/uigf-schema.json b/src/data/schema/uigf-schema.json index 3f2747af..b8dbdebb 100644 --- a/src/data/schema/uigf-schema.json +++ b/src/data/schema/uigf-schema.json @@ -82,7 +82,10 @@ }, "id": { "type": "string", - "title": "Internal ID of the record" + "title": "Internal ID of the record", + "maxLength": 19, + "minLength": 1, + "pattern": "^[0-9]+$" } }, "required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"], diff --git a/src/data/schema/uigf4-schema.json b/src/data/schema/uigf4-schema.json index b875eec7..be6c35b7 100644 --- a/src/data/schema/uigf4-schema.json +++ b/src/data/schema/uigf4-schema.json @@ -114,7 +114,10 @@ "id": { "type": "string", "description": "记录内部 ID,米哈游 API 返回" - } + }, + "maxLength": 19, + "minLength": 1, + "pattern": "^[0-9]+$" }, "required": ["uigf_gacha_type", "gacha_type", "item_id", "time", "id"] } diff --git a/src/plugins/Mys/request/postReq.ts b/src/plugins/Mys/request/postReq.ts index 921bbce5..897c6438 100644 --- a/src/plugins/Mys/request/postReq.ts +++ b/src/plugins/Mys/request/postReq.ts @@ -1,7 +1,7 @@ /** * @file plugins/Mys/request/postReq.ts * @description 帖子相关的获取 - * @since Beta v0.6.3 + * @since Beta v0.6.4 */ import TGHttp from "../../../utils/TGHttp.js"; @@ -91,7 +91,7 @@ export async function getPostFullInCollection( /** * @description 获取帖子回复信息 - * @since Beta v0.6.2 + * @since Beta v0.6.4 * @param {string} postId 帖子 ID * @param {number} gid 社区 ID * @param {boolean} isHot 是否热门 @@ -125,6 +125,7 @@ export async function getPostReplies( if (onlyMaster) { params.is_hot = false; params.only_master = onlyMaster; + params.order_type = 1; } const resp = await TGHttp(`${Mpabu}getPostReplies`, { method: "GET",