From 7e133176e5216916cc51707b4e7f05bf3443907a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Mon, 24 Feb 2025 15:12:41 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B1=20=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/web/request/apiHubReq.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/web/request/apiHubReq.ts b/src/web/request/apiHubReq.ts index 8567e2cf..80c26b6d 100644 --- a/src/web/request/apiHubReq.ts +++ b/src/web/request/apiHubReq.ts @@ -53,6 +53,29 @@ async function getMissions(cookie: Record): Promise} cookie 用户 Cookie + * @return {Promise} + */ +async function getShareConf( + postId: string, + cookie: Record, +): Promise { + const params = { entity_id: postId, entity_type: 1 }; + const header = { + ...getRequestHeader(cookie, "GET", params, "K2", true), + "x-rpc-client_type": "2", + }; + return await TGHttp(`${Mahbu}api/getShareConf`, { + method: "GET", + headers: header, + query: params, + }); +} + /** * @description 获取投票信息 * @since Beta v0.6.2