mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 修正浏览参数
This commit is contained in:
@@ -24,10 +24,14 @@ export async function getPostFull(
|
||||
postId: number,
|
||||
cookie?: Record<string, string>,
|
||||
): Promise<TGApp.Plugins.Mys.Post.FullData | TGApp.BBS.Response.Base> {
|
||||
const param = { post_id: postId };
|
||||
const param = { post_id: postId, read: 1 };
|
||||
let header;
|
||||
if (cookie) header = getRequestHeader(cookie, "GET", param);
|
||||
else header = { referer: Referer };
|
||||
if (cookie) {
|
||||
header = {
|
||||
...getRequestHeader(cookie, "GET", param, "K2", true),
|
||||
"x-rpc-client_type": "2",
|
||||
};
|
||||
} else header = { referer: Referer };
|
||||
const resp = await TGHttp<TGApp.Plugins.Mys.Post.Response>(`${Mpabu}getPostFull`, {
|
||||
method: "GET",
|
||||
headers: header,
|
||||
|
||||
@@ -134,7 +134,7 @@ const apiHubReq = {
|
||||
forum: getAllGamesForums,
|
||||
game: getGameList,
|
||||
mission: getMissions,
|
||||
post: { like: upVotePost },
|
||||
post: { like: upVotePost, share: getShareConf },
|
||||
};
|
||||
|
||||
export default apiHubReq;
|
||||
|
||||
Reference in New Issue
Block a user