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