🎨 一些优化

* 优化公告解析逻辑
* 咨讯页loading显示版块名称
* 移除无用文件
This commit is contained in:
目棃
2024-11-16 19:00:21 +08:00
parent 2f60e128a5
commit 680a54a0f1
23 changed files with 62 additions and 139 deletions

View File

@@ -5,7 +5,7 @@
*/
import TGHttp from "../../utils/TGHttp.js";
import TGUtils from "../utils/TGUtils.js";
import { getRequestHeader } from "../utils/getRequestHeader.js";
/**
* @description 获取用户收藏帖子
@@ -22,7 +22,7 @@ export async function getUserCollect(
): Promise<TGApp.BBS.Collection.PostRespData | TGApp.BBS.Response.Base> {
const url = "https://bbs-api.miyoushe.com/post/wapi/userFavouritePost";
const params = { size: "20", uid, offset };
const header = TGUtils.User.getHeader(cookie, "GET", params, "common");
const header = getRequestHeader(cookie, "GET", params, "common");
const resp = await TGHttp<TGApp.BBS.Collection.PostResponse | TGApp.BBS.Response.Base>(url, {
method: "GET",
headers: header,