diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 8657ab87..26b647a7 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -33,7 +33,7 @@
"https://act-webstatic.mihoyo.com/*",
"https://sdk-webstatic.mihoyo.com/*",
"https://homa.snapgenshin.com/*",
- "https://help.tencentbot.top/geetest2/*"
+ "https://enka-api.hut.ao/*"
]
},
"shell": {
diff --git a/src/pages/common/Achievements.vue b/src/pages/common/Achievements.vue
index 9e268c55..09ee1328 100644
--- a/src/pages/common/Achievements.vue
+++ b/src/pages/common/Achievements.vue
@@ -71,7 +71,7 @@
v-for="achievement in renderAchievement"
:key="achievement.id"
class="card-right"
- :style="{ Transform: `translateY(${translateY})` }"
+ :style="{ transform: `translateY(${translateY})` }"
>
{{ achievement.progress }}
diff --git a/src/web/request/getSyncAvatarDetail.ts b/src/web/request/getSyncAvatarDetail.ts
index 032f1b5b..6a39cc11 100644
--- a/src/web/request/getSyncAvatarDetail.ts
+++ b/src/web/request/getSyncAvatarDetail.ts
@@ -2,11 +2,11 @@
* @file web request getSyncAvatarDetail.ts
* @description 获取同步角色详情相关请求函数
* @author BTMuli
- * @since Alpha v0.2.1
+ * @since Alpha v0.2.3
*/
// tauri
-import { http } from "@tauri-apps/api";
+import { app, http } from "@tauri-apps/api";
// api
import TGApi from "../api/TGApi";
// utils
@@ -14,7 +14,7 @@ import TGUtils from "../utils/TGUtils";
/**
* @description 获取同步角色详情
- * @since Alpha v0.2.1
+ * @since Alpha v0.2.3
* @param {TGApp.BBS.Constant.CookieGroup2} cookie cookie
* @param {string} uid 用户 uid
* @param {number} avatarId 角色 id
@@ -35,8 +35,9 @@ async function getSyncAvatarDetail(
account_id: cookie.account_id,
cookie_token: cookie.cookie_token,
};
+ const version = await app.getVersion();
const header = {
- "User-Agent": "Tauri.Genshin/0.2.1",
+ "User-Agent": `Tauri.Genshin/${version}`,
Referer: "https://webstatic.mihoyo.com/",
Cookie: TGUtils.Tools.transCookie(ck),
};
diff --git a/src/web/request/getSyncAvatarListAll.ts b/src/web/request/getSyncAvatarListAll.ts
index 065e486c..42d91b9f 100644
--- a/src/web/request/getSyncAvatarListAll.ts
+++ b/src/web/request/getSyncAvatarListAll.ts
@@ -2,11 +2,11 @@
* @file web request getSyncAvatarListAll.ts
* @description 获取同步角色列表请求
* @author BTMuli
- * @since Alpha v0.2.1
+ * @since Alpha v0.2.3
*/
// tauri
-import { http } from "@tauri-apps/api";
+import { app, http } from "@tauri-apps/api";
// api
import TGApi from "../api/TGApi";
// utils
@@ -14,7 +14,7 @@ import TGUtils from "../utils/TGUtils";
/**
* @description 获取同步角色列表请求
- * @since Alpha v0.2.1
+ * @since Alpha v0.2.3
* @param {Record} cookie cookie
* @param {string} uid 用户 uid
* @param {number} page 页码
@@ -31,8 +31,9 @@ async function getSyncAvatarList(
region: TGUtils.Tools.getServerByUid(uid),
page,
};
+ const version = await app.getVersion();
const header = {
- "User-Agent": "Tauri.Genshin/0.2.1",
+ "User-Agent": `Tauri.Genshin/${version}`,
Referer: "https://webstatic.mihoyo.com/",
Cookie: TGUtils.Tools.transCookie(cookie),
};