mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🚚 info → record
This commit is contained in:
@@ -41,7 +41,7 @@ async function getInfo1 () {
|
||||
account_id: account_id.value,
|
||||
};
|
||||
console.log(ck);
|
||||
const res = await TGRequest.User.getCard(ck, user.value);
|
||||
const res = await TGRequest.User.getRecord(ck, user.value);
|
||||
console.log(res);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ async function getInfo2 () {
|
||||
ltuid: ltuid.value,
|
||||
};
|
||||
console.log(ck);
|
||||
const res = await TGRequest.User.getCard(ck, user.value);
|
||||
const res = await TGRequest.User.getRecord(ck, user.value);
|
||||
console.log(res);
|
||||
}
|
||||
</script>
|
||||
@@ -9,7 +9,7 @@
|
||||
import Abyss from "../../pages/User/Abyss.vue";
|
||||
import Characters from "../../pages/User/Characters.vue";
|
||||
import Gacha from "../../pages/User/Gacha.vue";
|
||||
import Info from "../../pages/User/Info.vue";
|
||||
import Record from "../../pages/User/Record.vue";
|
||||
// user sub
|
||||
|
||||
const userRoutes = [
|
||||
@@ -29,9 +29,9 @@ const userRoutes = [
|
||||
component: Gacha,
|
||||
},
|
||||
{
|
||||
path: "/user/info",
|
||||
name: "基本信息",
|
||||
component: Info,
|
||||
path: "/user/record",
|
||||
name: "原神战绩",
|
||||
component: Record,
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
* @file web request TGRequest.ts
|
||||
* @description 应用用到的请求函数
|
||||
* @author BTMuli<bt-muli@outlook.com>
|
||||
* @since Alpha v0.1.5
|
||||
* @since Alpha v0.1.6
|
||||
*/
|
||||
|
||||
import { getAbyss } from "./getAbyss";
|
||||
@@ -10,6 +10,7 @@ import { getAnnoList, getAnnoContent } from "./getAnno";
|
||||
import { getCookieTokenBySToken } from "./getCookieToken";
|
||||
// import * from "./getEnkaData.ts";
|
||||
import { getGameAccountsBySToken, getGameAccountsByCookie } from "./getGameAccounts";
|
||||
import { getGameRecord } from "./getGameRecord";
|
||||
import { getLTokenBySToken } from "./getLToken";
|
||||
import { getGameRoleListByLToken } from "./getRoleList";
|
||||
// import * from "./getTickets.ts";
|
||||
@@ -26,6 +27,7 @@ const TGRequest = {
|
||||
},
|
||||
User: {
|
||||
init: initCookie,
|
||||
getRecord: getGameRecord,
|
||||
byLoginTicket: {
|
||||
getTokens: getTokensByLoginTicket,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user