Merge branch 'develop' of git.pogorockgames.com:mango-games/server/game into develop

This commit is contained in:
sk 2024-11-01 15:25:34 +08:00
commit bd531df9a3
1 changed files with 9 additions and 2 deletions

View File

@ -3136,12 +3136,19 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
if msg.GuideId == 0 {
return nil
}
if PlatformMgrSingleton.GetConfig(p.Platform).GuideConfig.Info[msg.GuideId] == nil {
var cfg *webapi_proto.GuideInfo
for _, info := range PlatformMgrSingleton.GetConfig(p.Platform).GuideConfig.Info {
if info.GuideId == msg.GuideId {
cfg = info
break
}
}
if cfg == nil {
pack.OpRetCode = player_proto.OpResultCode_OPRC_Guide_Close
send()
return nil
}
cfg := PlatformMgrSingleton.GetConfig(p.Platform).GuideConfig.Info[msg.GuideId]
switch msg.GetTp() {
case common.AttributeGuideStep:
if len(msg.GetParam()) == 0 || msg.GetParam()[0] == 0 {