diff --git a/modules/hero/module.go b/modules/hero/module.go index c38b1ef93..b4c5b87ed 100644 --- a/modules/hero/module.go +++ b/modules/hero/module.go @@ -78,9 +78,7 @@ func (this *Hero) CreateRepeatHero(session comm.IUserSession, heroCfgId string, if heroConf == nil { return } - if heroConf.Handbook == -1 { // 不需要记录图鉴 - return - } + if result, err1 := this.ModuleUser.GetUserExpand(uid); err1 == nil { initUpdate := map[string]interface{}{} sz := result.GetTujian() @@ -89,7 +87,12 @@ func (this *Hero) CreateRepeatHero(session comm.IUserSession, heroCfgId string, } if _, ok := result.GetTujian()[heroCfgId]; !ok { - sz[heroCfgId] = 0 + if heroConf.Handbook == -1 { + sz[heroCfgId] = 0 + } else { + sz[heroCfgId] = 1 + } + initUpdate["tujian"] = sz this.ModuleUser.ChangeUserExpand(uid, initUpdate) }