上传错误日志提示

This commit is contained in:
liwei1dao 2023-09-18 19:09:43 +08:00
parent 221ed62dac
commit ac608e99a2

View File

@ -94,7 +94,8 @@ func (this *configureComp) GetMonsterFormat(id int32) (result []*cfg.GameMonster
if result, ok = this.mformat[id]; ok {
return
}
err = fmt.Errorf("GetMonsterFormat no found :%d", id)
// err = fmt.Errorf("GetMonsterFormat no found :%d", id)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_monsterformat, id)
this.module.Errorln(err)
return
}
@ -128,6 +129,7 @@ func (this *configureComp) getPandamasBuff(id int32) (configure *cfg.GamePandama
} else {
if configure, ok = v.(*cfg.GamePandamasBuff).GetDataMap()[id]; !ok {
// err = fmt.Errorf("not found:%d ", id)
// err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_pandamasbuff, id)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_pandamasbuff, id)
this.module.Errorln(err)
return
@ -146,7 +148,8 @@ func (this *configureComp) Getequipsuit(id int32) (result *cfg.GameEquipSuitData
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameEquipSuit).GetDataMap()[id]; !ok {
err = fmt.Errorf("on found Getequipsuit:%d", id)
// err = fmt.Errorf("on found Getequipsuit:%d", id)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_equipsuit, id)
this.module.Errorln(err)
}
}
@ -163,7 +166,8 @@ func (this *configureComp) GetBattlereadyCapskill(id int32) (result *cfg.GameBat
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameBattleready_capskill).GetDataMap()[id]; !ok {
err = fmt.Errorf("on found BattlereadyCapskill:%d", id)
// err = fmt.Errorf("on found BattlereadyCapskill:%d", id)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_battleready_capskill, id)
this.module.Errorln(err)
}
}
@ -177,6 +181,7 @@ func (this *configureComp) GetSkillAtk(skillId int32, skillLv int32) (result *cf
return
}
}
// err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_skillafteratk, skillId)
err = fmt.Errorf("no found SkillAtk skillId:%d skillLv%d", skillId, skillLv)
this.module.Errorln(err.Error())
return
@ -192,7 +197,8 @@ func (this *configureComp) GetSkillAfteratk(skillId int32) (result *cfg.GameSkil
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameSkillAfteratk).GetDataMap()[skillId]; !ok {
err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
// err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_skillafteratk, skillId)
this.module.Errorln(err.Error())
}
}
@ -209,7 +215,8 @@ func (this *configureComp) GetSkillBuff(skillId int32) (result *cfg.GameSkillBuf
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameSkillBuff).GetDataMap()[skillId]; !ok {
err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
// err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_skillbuff, skillId)
this.module.Errorln(err.Error())
}
}
@ -226,7 +233,8 @@ func (this *configureComp) GetSkillPassive(skillId int32) (result *cfg.GameSkill
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameSkillPassive).GetDataMap()[skillId]; !ok {
err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
// err = fmt.Errorf("on found SkillAfteratk skillId:%d", skillId)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_skillpassive, skillId)
this.module.Errorln(err.Error())
}
}
@ -242,7 +250,7 @@ func (this *configureComp) GetBattleTask(battle int32) (result *cfg.GameBattleta
this.module.Errorln(err)
} else {
if result, ok = v.(*cfg.GameBattletasktesting).GetDataMap()[battle]; !ok {
err = fmt.Errorf("on found GetBattleTask battle:%d", battle)
err = comm.NewNotFoundConfErr(string(this.module.GetType()), game_battletasktesting, battle)
this.module.Errorln(err.Error())
}
}