🎨 代码格式化

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

View File

@@ -6,10 +6,11 @@
import Md5 from "js-md5";
import { transCookie, transParams } from "./tools";
import { getDeviceInfo, getRandomString } from "../../utils/toolFunc";
import TGConstant from "../constant/TGConstant";
import { transCookie, transParams } from "./tools";
/**
* @description 获取 salt
* @since Beta v0.3.3

View File

@@ -4,10 +4,11 @@
* @since Beta v0.4.4
*/
import { decodeRegExp } from "./tools";
import { saveImgLocal } from "../../utils/TGShare";
import { isColorSimilar } from "../../utils/toolFunc";
import { decodeRegExp } from "./tools";
/**
* @description 解析 a
* @since Beta v0.4.4

View File

@@ -19,7 +19,7 @@ export function decodeRegExp(data: string): string {
res = res.replace(/&gt;/g, ">");
res = res.replace(/&nbsp;/g, " ");
res = res.replace(/&#39;/g, "'");
// eslint-disable-next-line @typescript-eslint/quotes
res = res.replace(/&quot;/g, `"`);
res = res.replace(/&apos;/g, "'");
res = res.replace(/&amp;/g, "&");