fix: 修正任务奖励数据字段名并添加调试日志

将任务奖励数据结构中的 type 字段统一更名为 kind 以保持一致性
在 MissionCardComp 和 MissionGetsComp 中添加调试日志输出
This commit is contained in:
panw
2026-01-27 17:29:27 +08:00
parent b43a30a192
commit b79d8e1950
3 changed files with 2789 additions and 3025 deletions

View File

@@ -274,7 +274,7 @@ export class MissionCardComp extends CCComp {
// 使用 CardSet 的 getCardOptions 获取卡牌
// 这里我们要获取 4 张卡牌
const options = getCardOptions(level, 4, [], forcedType);
console.log("[MissionCard]获取到的卡牌选项:", options);
// 更新卡片数据
if (options.length > 0) this.updateCardData(1, options[0]);
if (options.length > 1) this.updateCardData(2, options[1]);
@@ -475,7 +475,7 @@ export class MissionCardComp extends CCComp {
oops.message.dispatchEvent(GameEvent.UpdateMissionGet, {
uuid: selectedData.uuid,
icon: selectedData.icon,
type: selectedData.type
kind: selectedData.kind
});
this.close();