[神印]======升品修改
parent
60b499f13c
commit
30ed15db3a
|
|
@ -3990,6 +3990,7 @@ function NetManager.UpGodSealRequest(itemId,nextId,heroId,func)
|
||||||
data.itemId=itemId
|
data.itemId=itemId
|
||||||
if heroId==nil then
|
if heroId==nil then
|
||||||
--heroId=""
|
--heroId=""
|
||||||
|
data.heroId=""
|
||||||
else
|
else
|
||||||
heroId=tostring(heroId)
|
heroId=tostring(heroId)
|
||||||
data.heroId=heroId
|
data.heroId=heroId
|
||||||
|
|
@ -3997,8 +3998,11 @@ function NetManager.UpGodSealRequest(itemId,nextId,heroId,func)
|
||||||
|
|
||||||
--LogError("itemid=="..itemId.." heroid=="..heroId)
|
--LogError("itemid=="..itemId.." heroid=="..heroId)
|
||||||
local msg = data:SerializeToString()
|
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)
|
NetManager.RequestUserForceChange(FormationTypeDef.FORMATION_NORMAL)
|
||||||
|
local data = buffer:DataByte()
|
||||||
|
local msg = HeroInfoProto_pb.UpGodSealResponse()
|
||||||
|
msg:ParseFromString(data)
|
||||||
if heroId then
|
if heroId then
|
||||||
local pos=HeroManager.GetHeroGodPrintPosByID(heroId,itemId)
|
local pos=HeroManager.GetHeroGodPrintPosByID(heroId,itemId)
|
||||||
HeroManager.ChangeGodPrint(heroId,pos,nextId)
|
HeroManager.ChangeGodPrint(heroId,pos,nextId)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue