diff --git a/modules/dragon/api_lvitem.go b/modules/dragon/api_lvitem.go index 6bc27fccc..06a8fbe32 100644 --- a/modules/dragon/api_lvitem.go +++ b/modules/dragon/api_lvitem.go @@ -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 }