驯龙数据修复

This commit is contained in:
meixiongfeng 2023-09-14 16:19:19 +08:00
parent d86fb743c0
commit 402eb4deed
2 changed files with 2 additions and 3 deletions

View File

@ -42,7 +42,6 @@ func (this *configureComp) Init(service core.IService, module core.IModule, comp
configure.RegisterConfigure(dragon_play, cfg.NewGameDragonPlay, this.LoadDragonPlay)
configure.RegisterConfigure(game_buzkashimount, cfg.NewGameBuzkashiMount, this.LoadDragonMount)
this.GetDragonMount("20030001", 3)
return
}

View File

@ -122,9 +122,9 @@ func (this *ModelDragon) CreateDragon(session comm.IUserSession, dragons map[str
continue
}
if dbModel != nil {
err = dbModel.AddList(uid, dragonCfgId, dragon)
err = dbModel.AddList(uid, dragon.Id, dragon)
} else {
err = this.AddList(uid, dragonCfgId, dragon)
err = this.AddList(uid, dragon.Id, dragon)
}
if err != nil {
errdata = &pb.ErrorData{