♻️ 姑且没登录的功能都给试了下

This commit is contained in:
目棃
2024-07-03 17:49:15 +08:00
parent 367307029b
commit 8a2c7d13c6
47 changed files with 1135 additions and 315 deletions

View File

@@ -18,7 +18,7 @@ async function getPostData(postId: number): Promise<TGApp.Plugins.Mys.Post.FullD
const params = { post_id: postId.toString() };
const resp = await TGHttp<TGApp.Plugins.Mys.Post.Response>(url, {
method: "GET",
headers: { "Content-Type": "application/json", Referer: MysApi.PostReferer },
headers: { referer: MysApi.PostReferer },
query: params,
});
return resp.data.post;

View File

@@ -1,7 +1,7 @@
/**
* @file plugins/Mys/utils/getGachaCard.ts
* @description Mys 插件抽卡工具
* @since Beta v0.4.4
* @since Beta v0.5.0
*/
import { AppCharacterData } from "../../../data/index.js";
@@ -9,7 +9,7 @@ import getPostData from "../request/getPostData.js";
/**
* @description 根据单个卡池信息转为渲染用的卡池信息
* @since Beta v0.4.4
* @since Beta v0.5.0
* @param {TGApp.Plugins.Mys.Gacha.Data} data 卡池信息
* @param {string} poolCover 卡池封面
* @returns {Promise<TGApp.Plugins.Mys.Gacha.RenderCard>}