添加错误输出
This commit is contained in:
parent
8c53d55b8f
commit
79f9aeb43a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user