添加错误输出

This commit is contained in:
meixiongfeng 2023-09-21 15:15:19 +08:00
parent 8c53d55b8f
commit 79f9aeb43a

View File

@ -62,10 +62,11 @@ func (this *apiComp) LvItem(session comm.IUserSession, req *pb.DragonLvItemReq)
dragon.Lvitem[req.Attribute] = 1
}
if curLvConf, err = this.module.configure.GetDragonLvItemConf(req.Attribute, dragon.Lvitem[req.Attribute]); err == nil {
if upLvConf, err = this.module.configure.GetDragonLvItemConf(req.Attribute, dragon.Lvitem[req.Attribute]+1); err == nil {
if upLvConf, err = this.module.configure.GetDragonLvItemConf(req.Attribute, dragon.Lvitem[req.Attribute]+1); err != nil {
errdata = &pb.ErrorData{
Code: pb.ErrorCode_DragonMaxLvItem,
Title: pb.ErrorCode_DragonMaxLvItem.ToString(),
Code: pb.ErrorCode_DragonMaxLvItem,
Title: pb.ErrorCode_DragonMaxLvItem.ToString(),
Message: err.Error(),
}
return
}