diff --git a/shared/consts/statusCode.ts b/shared/consts/statusCode.ts index 19cc2a798..0e93f2407 100644 --- a/shared/consts/statusCode.ts +++ b/shared/consts/statusCode.ts @@ -116,8 +116,7 @@ export const STATUS = { ROLE_INFO_NOT_FOUND: { code: 30000, simStr: '数据表未找到' }, ROLE_MATERIAL_NOT_ENOUGH: { code: 30001, simStr: '材料数量不足' }, // 武将养成通用 30100 - 30199 - HERO_JOB_REACH_MAX_STAGE: {code: 30100, simStr: '武将已达到最大的职业阶级'}, - HERO_JOB_STAGE_REACH_MAX_STAGE: {code: 30101, simStr: '武将已训练到最大阶段'}, + // 武将合成,升级,升星,升品相关 30200 - 30299 ROLE_HERO_EXISTS: {code: 30200, simStr: '已存在武将不可合成' }, ROLE_METERIAL_ERROR: {code: 30201, simStr: '材料错误' }, @@ -133,7 +132,14 @@ export const STATUS = { ROLE_QUALITY_NOT_ENOUGH: {code: 30211, simStr: '品质未升满,不可觉醒' }, // 武将训练,好感度,羁绊,时装相关 30300 - 30399 - + HERO_NOT_FIND: {code: 30300, simStr: '武将不存在' }, + HERO_JOB_REACH_MAX_STAGE: {code: 30300, simStr: '武将已达到最大的职业阶级'}, + HERO_JOB_STAGE_REACH_MAX_STAGE: {code: 30301, simStr: '武将已训练到最大阶段'}, + NOT_REACH_UNLOCK_LEVEL: {code: 30302, simStr: '未达到解锁等级'}, + HERO_SKIN_NOT_FIND: {code: 30303, simStr: '时装不存在'}, + HERO_SKIN_IS_EXIST: {code: 30304, simStr: '时装已存在'}, + HERO_CONECTION_IS_EXIT: {code: 30305, simStr: '羁绊已解锁'}, + HERO_FAVOUR_LEVEL_REACH_MAXT:{code: 30304, simStr: '武将好感等级以达到最大'}, // 社交相关状态 40000 - 49999 // 运营模块相关状态 50000 - 59999 // GM后台相关状态 60000 - 69999 diff --git a/shared/db/Hero.ts b/shared/db/Hero.ts index 4c1c23120..f4f2e4907 100644 --- a/shared/db/Hero.ts +++ b/shared/db/Hero.ts @@ -82,8 +82,6 @@ export default class Hero extends BaseModel { @prop({ required: true, default: [] }) conections: [{ // 羁绊 id: number; // 羁绊编号 - name: string; // 羁绊名称 - valid: boolean; // 是否开启 }]; @prop({ required: true, default: [] }) skins: [{ // 皮肤