[神印]======升品修改
parent
60b499f13c
commit
30ed15db3a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue