🚸 首页卡池不传递ck

This commit is contained in:
BTMuli
2025-06-09 13:50:39 +08:00
parent 291e92edd6
commit e23a0363c1
2 changed files with 4 additions and 4 deletions

View File

@@ -99,7 +99,7 @@ async function loadCover(): Promise<void> {
cover.value = poolCover.value[postId];
return;
}
const resp = await postReq.post(postId);
const resp = await postReq.post(postId, {});
if ("retcode" in resp) {
showSnackbar.error(`[PhPoolCard][${resp.retcode}] ${resp.message}`);
await TGLogger.Error(`[PhPoolCard][${resp.retcode}] ${resp.message}`);

View File

@@ -1,7 +1,7 @@
/**
* @file request/postReq.ts
* @description 帖子相关的请求
* @since Beta v0.7.4
* @since Beta v0.7.7
*/
import { getRequestHeader } from "@utils/getRequestHeader.js";
import TGHttp from "@utils/TGHttp.js";
@@ -12,7 +12,7 @@ const Referer: Readonly<string> = "https://bbs.mihoyo.com/";
/**
* @description 获取单个帖子信息
* @since Beta v0.7.1
* @since Beta v0.7.7
* @param {number|string} postId 帖子 ID
* @param {Record<string, string>} cookie Cookie
* @return {Promise<TGApp.BBS.Post.FullData | TGApp.BBS.Response.Base>}
@@ -23,7 +23,7 @@ async function getPostFull(
): Promise<TGApp.BBS.Post.FullData | TGApp.BBS.Response.Base> {
const param = { post_id: postId, read: 1 };
let header;
if (cookie) {
if (cookie !== undefined) {
header = {
...getRequestHeader(cookie, "GET", param, "K2", true),
"x-rpc-client_type": "2",