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