From 7d841ba48767e2ef9f1b118aed2b758f4e03bd7c Mon Sep 17 00:00:00 2001 From: duhui Date: Thu, 15 Apr 2021 17:34:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E9=80=9A=E7=94=A8=E7=A5=AD=E5=93=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/HeroInfoProto.proto | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index db9b62f..52b3d80 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -51,11 +51,16 @@ import "CommonProto.proto"; optional string heroId = 1; //升级或突破的英雄id optional int32 targetLevel = 2 ;// 目标等级 } - + + message ConsumeItem{ + optional int32 type = 1;// 类型,1:英雄,2:道具 + optional string itemId = 2;//物品id或英雄id + optional int32 itemNum = 3;//物品数量 + } message ConsumeMaterial{ optional int32 position=1; //卡槽位置 - repeated string heroIds=2; //消耗英雄ids + repeated ConsumeItem heroIds=2; //消耗英雄ids } message UpHeroStarRequest{ From ad893797686a69e51dcbe754bbab9a8d311061af Mon Sep 17 00:00:00 2001 From: duhui Date: Thu, 15 Apr 2021 17:49:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=80=9A=E7=94=A8=E7=A5=AD=E5=93=81?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protos/HeroInfoProto.proto | 1 - 1 file changed, 1 deletion(-) diff --git a/protos/HeroInfoProto.proto b/protos/HeroInfoProto.proto index 52b3d80..ec947fa 100644 --- a/protos/HeroInfoProto.proto +++ b/protos/HeroInfoProto.proto @@ -55,7 +55,6 @@ import "CommonProto.proto"; message ConsumeItem{ optional int32 type = 1;// 类型,1:英雄,2:道具 optional string itemId = 2;//物品id或英雄id - optional int32 itemNum = 3;//物品数量 } message ConsumeMaterial{