引导修改
This commit is contained in:
parent
fd2e1b3cad
commit
7066908dfd
|
@ -3134,12 +3134,19 @@ func CSUpdateAttribute(s *netlib.Session, packetId int, data interface{}, sid in
|
||||||
if msg.GuideId == 0 {
|
if msg.GuideId == 0 {
|
||||||
return nil
|
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
|
pack.OpRetCode = player_proto.OpResultCode_OPRC_Guide_Close
|
||||||
send()
|
send()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
cfg := PlatformMgrSingleton.GetConfig(p.Platform).GuideConfig.Info[msg.GuideId]
|
|
||||||
switch msg.GetTp() {
|
switch msg.GetTp() {
|
||||||
case common.AttributeGuideStep:
|
case common.AttributeGuideStep:
|
||||||
if len(msg.GetParam()) == 0 || msg.GetParam()[0] == 0 {
|
if len(msg.GetParam()) == 0 || msg.GetParam()[0] == 0 {
|
||||||
|
|
Loading…
Reference in New Issue