diff --git a/src/components/viewPost/tp-image.vue b/src/components/viewPost/tp-image.vue
index ac233205..572039fe 100644
--- a/src/components/viewPost/tp-image.vue
+++ b/src/components/viewPost/tp-image.vue
@@ -1,3 +1,4 @@
+
![]()
@@ -118,9 +119,7 @@ function getImageTitle(): string {
}
function getImageExt(): string {
- if (props.data.attributes) {
- if (props.data.attributes.ext) return props.data.attributes.ext;
- }
+ if (props.data.attributes && props.data.attributes.ext) return props.data.attributes.ext;
if (typeof props.data.insert.image === "string") {
const arr = props.data.insert.image.split(".");
return arr[arr.length - 1];
diff --git a/src/pages/User/Combat.vue b/src/pages/User/Combat.vue
index 9e9748c8..4ffe56b9 100644
--- a/src/pages/User/Combat.vue
+++ b/src/pages/User/Combat.vue
@@ -1,3 +1,4 @@
+
@@ -201,6 +202,7 @@ async function refreshCombat(): Promise {
await TGLogger.Info("[UserCombat][refreshCombat] 更新剧诗数据");
await showLoading.start(`正在获取${account.value.gameUid}的剧诗数据`);
const res = await recordReq.roleCombat(cookie.value, account.value);
+ console.log(res);
if (res === false) {
await showLoading.end();
showSnackbar.warn("用户未解锁幻想真境剧诗");
diff --git a/src/types/Game/ActCalendar.d.ts b/src/types/Game/ActCalendar.d.ts
index 6ce8fdc8..37130e4f 100644
--- a/src/types/Game/ActCalendar.d.ts
+++ b/src/types/Game/ActCalendar.d.ts
@@ -1,7 +1,7 @@
/**
* @file src/types/Game/ActCalendar.d.ts
* @description 游戏-活动日历相关类型定义文件
- * @since Beta v0.8.0
+ * @since Beta v0.8.3
*/
declare namespace TGApp.Game.ActCalendar {
@@ -258,13 +258,21 @@ declare namespace TGApp.Game.ActCalendar {
/**
* @description 真境剧诗活动详情
- * @since Beta v0.8.0
+ * @since Beta v0.8.3
* @interface ActRoleCombat
+ * @property {number} difficulty_id 难度id
+ * @property {boolean} has_data 是否有数据
* @property {boolean} is_unlock 是否解锁
* @property {number} max_round_id 最大回合数
- * @property {boolean} has_data 是否有数据
+ * @property {number} tarot_finished_cnt 塔罗牌完成数
*/
- type ActRoleCombat = { is_unlock: boolean; max_round_id: number; has_data: boolean };
+ type ActRoleCombat = {
+ difficulty_id: number;
+ has_data: boolean;
+ is_unlock: boolean;
+ max_round_id: number;
+ tarot_finished_cnt: number;
+ };
/**
* @description 活动信息-深渊螺旋
diff --git a/src/types/Game/Combat.d.ts b/src/types/Game/Combat.d.ts
index 5bdfe010..fa204e8a 100644
--- a/src/types/Game/Combat.d.ts
+++ b/src/types/Game/Combat.d.ts
@@ -1,7 +1,7 @@
/**
* @file types/Game/Combat.d.ts
* @description 幻想真境剧诗类型定义
- * @since Beta v0.8.0
+ * @since Beta v0.8.3
*/
declare namespace TGApp.Game.Combat {
@@ -94,7 +94,7 @@ declare namespace TGApp.Game.Combat {
/**
* @description 状态
* @interface Stat
- * @since Beta v0.6.3
+ * @since Beta v0.8.3
* @property {number} difficulty_id 难度等级
* @property {number} max_round_id 最多层数
* @property {number} heraldry 纹章数
@@ -103,6 +103,7 @@ declare namespace TGApp.Game.Combat {
* @property {number} coin_num 硬币数
* @property {number} avatar_bonus_num 角色声援数
* @property {number} rent_cnt 出借次数
+ * @property {number} tarot_finished_cnt 塔罗牌完成数
*/
type Stat = {
difficulty_id: number;
@@ -113,6 +114,7 @@ declare namespace TGApp.Game.Combat {
coin_num: number;
avatar_bonus_num: number;
rent_cnt: number;
+ tarot_finished_cnt: number;
};
/**
@@ -163,7 +165,7 @@ declare namespace TGApp.Game.Combat {
/**
* @description 轮次数据
- * @since Beta v0.8.0
+ * @since Beta v0.8.3
* @interface RoundData
* @property {Array} avatars 角色
* @property {Array} choice_cards 选中卡片
@@ -174,6 +176,8 @@ declare namespace TGApp.Game.Combat {
* @property {TGApp.Game.Base.DateTime} finish_date_time 完成时间
* @property {Array} enemies 敌人
* @property {SplendourBuff} splendour_buff 总体Buff
+ * @property {boolean} is_tarot 是否为塔罗牌
+ * @property {number} tarot_serial_no 塔罗牌序号
*/
type RoundData = {
avatars: Array;
@@ -185,6 +189,8 @@ declare namespace TGApp.Game.Combat {
finish_date_time: TGApp.Game.Base.DateTime;
enemies: Array;
splendour_buff: SplendourBuff;
+ is_tarot: boolean;
+ tarot_serial_no: number;
};
/**
diff --git a/src/utils/TGClient.ts b/src/utils/TGClient.ts
index be8454bb..b8e2de84 100644
--- a/src/utils/TGClient.ts
+++ b/src/utils/TGClient.ts
@@ -2,6 +2,7 @@
* @file utils/TGClient.ts
* @desc 负责米游社客户端的 callback 处理
* @since Beta v0.7.6
+ * @todo Cookie 切换异常
*/
import showSnackbar from "@comp/func/snackbar.js";