no message
This commit is contained in:
parent
970db216f4
commit
8866473467
|
@ -967,6 +967,7 @@ func NewPlayerData(acc string, name, headUrl string, id int32, channel, platform
|
||||||
AccountType: accountType,
|
AccountType: accountType,
|
||||||
DeviceOS: deviceOS,
|
DeviceOS: deviceOS,
|
||||||
ClientVer: clientVer,
|
ClientVer: clientVer,
|
||||||
|
GuideData: make(map[int32]int32),
|
||||||
}
|
}
|
||||||
|
|
||||||
pd.InitNewData(params)
|
pd.InitNewData(params)
|
||||||
|
|
|
@ -176,6 +176,9 @@ func (this *Player) init() bool {
|
||||||
if this.VCardCost < 0 {
|
if this.VCardCost < 0 {
|
||||||
this.VCardCost = 0
|
this.VCardCost = 0
|
||||||
}
|
}
|
||||||
|
if this.GuideData == nil {
|
||||||
|
this.GuideData = make(map[int32]int32)
|
||||||
|
}
|
||||||
this.InitRolesAndPets()
|
this.InitRolesAndPets()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@ -4534,7 +4537,7 @@ func (this *Player) GetSkillAdd(id int32) int32 {
|
||||||
func (this *Player) SCGuide() {
|
func (this *Player) SCGuide() {
|
||||||
cfg := PlatformMgrSingleton.GetConfig(this.Platform).GuideConfig
|
cfg := PlatformMgrSingleton.GetConfig(this.Platform).GuideConfig
|
||||||
pack := &playerproto.SCGuideConfig{}
|
pack := &playerproto.SCGuideConfig{}
|
||||||
for _, data := range cfg.Info {
|
for _, data := range cfg.GetInfo() {
|
||||||
var awards []*playerproto.ItemInfo
|
var awards []*playerproto.ItemInfo
|
||||||
for _, award := range data.Awards {
|
for _, award := range data.Awards {
|
||||||
item := &playerproto.ItemInfo{
|
item := &playerproto.ItemInfo{
|
||||||
|
|
|
@ -2970,6 +2970,7 @@ func init() {
|
||||||
CallBackFunc: func(code shop.OpResultCode) {
|
CallBackFunc: func(code shop.OpResultCode) {
|
||||||
pack.Tag = webapiproto.ExchangeCreateCode(code)
|
pack.Tag = webapiproto.ExchangeCreateCode(code)
|
||||||
pack.Id = msg.GetId()
|
pack.Id = msg.GetId()
|
||||||
|
logger.Logger.Tracef("/api/game/exchange_create return %v", pack)
|
||||||
tNode.TransRep.RetFiels = pack
|
tNode.TransRep.RetFiels = pack
|
||||||
tNode.Resume()
|
tNode.Resume()
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue