diff --git a/data/gameparam.json b/data/gameparam.json index d0956de..95b9b04 100644 --- a/data/gameparam.json +++ b/data/gameparam.json @@ -24,5 +24,5 @@ "AgoraAddress": "http://47.105.78.29:8081", "InviteUrl": "http://47.105.78.29:8000/", "RankTimeout": 2, - "PermitInitScore": 0 + "PermitInitScore": 1000 } \ No newline at end of file diff --git a/public b/public index 6fefbb3..e3671e3 160000 --- a/public +++ b/public @@ -1 +1 @@ -Subproject commit 6fefbb3db104ed096948a126db87d4e86d19362a +Subproject commit e3671e30a6f3093cc7219f9b074e5586c3b2c011 diff --git a/worldsrv/action_pets.go b/worldsrv/action_pets.go index 9dbe027..3c3b277 100644 --- a/worldsrv/action_pets.go +++ b/worldsrv/action_pets.go @@ -605,6 +605,11 @@ 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 }