From 79f9aeb43acab92644b0f5babdac5dd73452915f Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Thu, 21 Sep 2023 15:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=94=99=E8=AF=AF=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/dragon/api_lvitem.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 }