From 42601c29fdc9118be7096db595002f04f4aff8ac Mon Sep 17 00:00:00 2001 From: xichaoyin Date: Thu, 4 Jan 2024 17:17:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9gud=E4=B8=ADweiwang?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=B8=BAweiwangbuff?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cross/protocols/serviceProto.ts | 2 +- src/monopoly/protocols/serviceProto.ts | 2 +- src/public/fight.ts | 2 +- src/shared/protocols/serviceProto.ts | 6 +++--- src/shared/protocols/user/PtlLogin.ts | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/cross/protocols/serviceProto.ts b/src/cross/protocols/serviceProto.ts index 6ba4ee3..e450a49 100644 --- a/src/cross/protocols/serviceProto.ts +++ b/src/cross/protocols/serviceProto.ts @@ -1322,7 +1322,7 @@ export const serviceProto: ServiceProto = { }, { "id": 38, - "name": "weiwang", + "name": "weiwangbuff", "type": { "type": "Interface", "indexSignature": { diff --git a/src/monopoly/protocols/serviceProto.ts b/src/monopoly/protocols/serviceProto.ts index 21be2fe..fd34bab 100644 --- a/src/monopoly/protocols/serviceProto.ts +++ b/src/monopoly/protocols/serviceProto.ts @@ -2640,7 +2640,7 @@ export const serviceProto: ServiceProto = { }, { "id": 38, - "name": "weiwang", + "name": "weiwangbuff", "type": { "type": "Interface", "indexSignature": { diff --git a/src/public/fight.ts b/src/public/fight.ts index c26bc12..8d1dff6 100644 --- a/src/public/fight.ts +++ b/src/public/fight.ts @@ -106,7 +106,7 @@ export class FightFun { if (["tanxian"].indexOf(type) != -1) { // 威望buff let weiwang = await G.mongodb.collection("weiwang").findOne({ uid: call.uid }); - ext_buff["weiwang"] = weiwang?.buff ? weiwang.buff : { "atk": 0, "def": 0, "hp": 0 }; + ext_buff["weiwangbuff"] = weiwang?.buff ? weiwang.buff : { "atk": 0, "def": 0, "hp": 0 }; } let my = data || await call.conn.getDefaultFightData(undefined, ext_buff); diff --git a/src/shared/protocols/serviceProto.ts b/src/shared/protocols/serviceProto.ts index 0175ebe..e925cd9 100644 --- a/src/shared/protocols/serviceProto.ts +++ b/src/shared/protocols/serviceProto.ts @@ -4588,7 +4588,7 @@ export const serviceProto: ServiceProto = { }, { "id": 38, - "name": "weiwang", + "name": "weiwangbuff", "type": { "type": "Interface", "indexSignature": { @@ -5846,7 +5846,7 @@ export const serviceProto: ServiceProto = { }, { "id": 38, - "name": "weiwang", + "name": "weiwangbuff", "type": { "type": "Interface", "indexSignature": { @@ -24386,7 +24386,7 @@ export const serviceProto: ServiceProto = { }, { "id": 38, - "name": "weiwang", + "name": "weiwangbuff", "type": { "type": "Interface", "indexSignature": { diff --git a/src/shared/protocols/user/PtlLogin.ts b/src/shared/protocols/user/PtlLogin.ts index 6be7445..be0c04d 100644 --- a/src/shared/protocols/user/PtlLogin.ts +++ b/src/shared/protocols/user/PtlLogin.ts @@ -194,5 +194,5 @@ export type playerAppend = { [id: string]: number; }; /**威望额外属性*/ - weiwang?: { [k: string]: number }; + weiwangbuff?: { [k: string]: number }; }; \ No newline at end of file