mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🎨 代码格式化
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@ export function decodeRegExp(data: string): string {
|
||||
res = res.replace(/>/g, ">");
|
||||
res = res.replace(/ /g, " ");
|
||||
res = res.replace(/'/g, "'");
|
||||
// eslint-disable-next-line @typescript-eslint/quotes
|
||||
|
||||
res = res.replace(/"/g, `"`);
|
||||
res = res.replace(/'/g, "'");
|
||||
res = res.replace(/&/g, "&");
|
||||
|
||||
Reference in New Issue
Block a user