[神印]======升品修改

wangzhenxing 2022-09-06 14:22:14 +08:00
parent 60b499f13c
commit 30ed15db3a
1 changed files with 5 additions and 1 deletions

View File

@ -3990,6 +3990,7 @@ function NetManager.UpGodSealRequest(itemId,nextId,heroId,func)
data.itemId=itemId
if heroId==nil then
--heroId=""
data.heroId=""
else
heroId=tostring(heroId)
data.heroId=heroId
@ -3997,8 +3998,11 @@ function NetManager.UpGodSealRequest(itemId,nextId,heroId,func)
--LogError("itemid=="..itemId.." heroid=="..heroId)
local msg = data:SerializeToString()
Network:SendMessageWithCallBack(MessageTypeProto_pb.UpGodSealRequest, MessageTypeProto_pb.UpGodSealResponse, msg, function()
Network:SendMessageWithCallBack(MessageTypeProto_pb.UpGodSealRequest, MessageTypeProto_pb.UpGodSealResponse, msg, function(buffer)
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
local data = buffer:DataByte()
local msg = HeroInfoProto_pb.UpGodSealResponse()
msg:ParseFromString(data)
if heroId then
local pos=HeroManager.GetHeroGodPrintPosByID(heroId,itemId)
HeroManager.ChangeGodPrint(heroId,pos,nextId)