Compare commits

..

No commits in common. "4118164692660327c87fec86bc71d779c64be2b7" and "8391b159eafb1c788f57c97dca297b92859e3599" have entirely different histories.

4 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

2
public

@ -1 +1 @@
Subproject commit 085f01d57005ff2e025bb0bb40740ac170620cdf Subproject commit 64190233130f2868d1cf6ecd2be04d9b13073ae2

View File

@ -578,11 +578,6 @@ func SkinUnLock(p *Player, id int32) (*pets.SkinInfo, pets.OpResultCode) {
} }
p.SendToClient(int(pets.PetsPacketID_PACKET_SC_SKIN_UNLOCK), pack) p.SendToClient(int(pets.PetsPacketID_PACKET_SC_SKIN_UNLOCK), pack)
logger.Logger.Tracef("SCSkinUnlock: %v", pack) logger.Logger.Tracef("SCSkinUnlock: %v", pack)
// 自动使用
if srvdata.PBDB_SkinMgr.GetData(id).GetUnlockType() == common.SkinGetAuto {
CSSkinUse(p.gateSess, int(pets.PetsPacketID_PACKET_CS_SKIN_USE), &pets.CSSkinUse{Id: id}, p.sid)
}
return pack.Info, pets.OpResultCode_OPRC_Sucess return pack.Info, pets.OpResultCode_OPRC_Sucess
} }
@ -610,6 +605,11 @@ func CSSKinUnLock(s *netlib.Session, packetid int, data interface{}, sid int64)
pack.Info, pack.RetCode = SkinUnLock(p, msg.GetId()) pack.Info, pack.RetCode = SkinUnLock(p, msg.GetId())
if pack.GetRetCode() != pets.OpResultCode_OPRC_Sucess { if pack.GetRetCode() != pets.OpResultCode_OPRC_Sucess {
send() send()
} else {
// 自动使用
if srvdata.PBDB_SkinMgr.GetData(msg.GetId()).GetUnlockType() == common.SkinGetAuto {
CSSkinUse(s, int(pets.PetsPacketID_PACKET_CS_SKIN_USE), new(pets.CSSkinUse), sid)
}
} }
return nil return nil
} }