🎨 代码格式化

This commit is contained in:
目棃
2024-04-23 19:00:28 +08:00
parent f802ee9a68
commit 065019cdc6
33 changed files with 73 additions and 54 deletions

View File

@@ -22,7 +22,7 @@ export async function getGameRoleListByLToken(
): Promise<TGApp.Game.Character.ListItem[] | TGApp.BBS.Response.Base> {
const url = TGApi.GameData.byCookie.getCharacter;
const uid = account.gameUid;
// eslint-disable-next-line camelcase
const data = { role_id: uid, server: TGUtils.Tools.getServerByUid(uid) };
const header = TGUtils.User.getHeader(cookie, "POST", JSON.stringify(data), "common");
return await http

View File

@@ -25,7 +25,7 @@ export async function getTokensByLoginTicket(
login_uid: uid,
};
const url = TGApi.GameTokens.getTokens;
// eslint-disable-next-line camelcase
const params = { login_ticket: ticket, token_types: "3", uid };
const header = TGUtils.User.getHeader(cookie, "GET", params, "common");
return await http