From 04fe3029b3ecdc8cf0254165a55966763065d4d8 Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Fri, 5 Jan 2024 20:09:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20json=E6=A0=BC=E5=BC=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api_s2c/heroskin/ApiWear.ts | 2 +- src/jsonType.ts | 2 +- src/shared/public/hero.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api_s2c/heroskin/ApiWear.ts b/src/api_s2c/heroskin/ApiWear.ts index d8a4c56..3a43ef7 100644 --- a/src/api_s2c/heroskin/ApiWear.ts +++ b/src/api_s2c/heroskin/ApiWear.ts @@ -17,7 +17,7 @@ export default async function (call: ApiCall) { } let skinconf = G.gc.heroSkin[call.req.skid]; - if (skinconf.heroid != hero.heroId) { // 皮肤不属于该英雄 + if (skinconf.heroId != hero.heroId) { // 皮肤不属于该英雄 call.error(lng.hero_21); return; } diff --git a/src/jsonType.ts b/src/jsonType.ts index 13d4b3e..4e8f553 100644 --- a/src/jsonType.ts +++ b/src/jsonType.ts @@ -1802,7 +1802,7 @@ type gc_hero_skin = { /**皮肤id*/ id: number /**干部id*/ - heroid: number + heroId: number /**皮肤品质*/ colour: number /**摸到重复时转换*/ diff --git a/src/shared/public/hero.ts b/src/shared/public/hero.ts index e8b2c38..d4ad2ff 100644 --- a/src/shared/public/hero.ts +++ b/src/shared/public/hero.ts @@ -283,7 +283,7 @@ export class HeroShared { if (otherBuff?.heroskin) { for (let skinId in otherBuff.heroskin) { let skinConf = G.gc.heroSkin[skinId]; - if (skinConf.heroid != hero.heroId) console; + if (skinConf.heroId != hero.heroId) console; PublicShared.mergeProperty(buff, HeroSkinFun.calcBuff( skinId, otherBuff.heroskin[skinId] ));