上传代码

This commit is contained in:
liwei1dao 2022-11-04 12:08:06 +08:00
parent da5d24dcb0
commit 94d225ff16

View File

@ -51,11 +51,11 @@ func (this *apiComp) Upgrade(session comm.IUserSession, req *pb.HoroscopeUpgrade
if code = this.module.ConsumeRes(session, conf.CostItem, true); code != pb.ErrorCode_Success {
return
}
info.Nodes[conf.NodeId] = conf.Lv
info.Nodes[conf.NodeId] = conf.Lv + 1
if err = this.module.modelHoroscope.updateInfo(info); err != nil {
code = pb.ErrorCode_DBError
return
}
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeUpgradeResp{Nid: conf.NodeId, Lv: conf.Lv})
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeUpgradeResp{Nid: conf.NodeId, Lv: conf.Lv + 1})
return
}