update develop

This commit is contained in:
sk 2024-07-15 15:55:46 +08:00
parent 45f1393600
commit ea7e0a29b5
4 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

2
public

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

View File

@ -578,6 +578,11 @@ func SkinUnLock(p *Player, id int32) (*pets.SkinInfo, pets.OpResultCode) {
}
p.SendToClient(int(pets.PetsPacketID_PACKET_SC_SKIN_UNLOCK), 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
}
@ -605,11 +610,6 @@ func CSSKinUnLock(s *netlib.Session, packetid int, data interface{}, sid int64)
pack.Info, pack.RetCode = SkinUnLock(p, msg.GetId())
if pack.GetRetCode() != pets.OpResultCode_OPRC_Sucess {
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
}