上传装备洗练修复
This commit is contained in:
parent
c039753296
commit
b1b582023b
@ -35,15 +35,16 @@ func (this *apiComp) Wash(session comm.IUserSession, req *pb.EquipmentWashReq) (
|
|||||||
code = pb.ErrorCode_SystemError
|
code = pb.ErrorCode_SystemError
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
gole := this.module.configure.GetGlobalConf().EquipmentConsumption[conf.Color-1]
|
|
||||||
if code = this.module.ConsumeRes(session, []*cfg.Gameatn{{A: comm.AttrType, T: comm.ResGold, N: gole}}, true); code != pb.ErrorCode_Success {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if conf, err = this.module.configure.GetEquipmentConfigureById(equip.CId); err != nil {
|
if conf, err = this.module.configure.GetEquipmentConfigureById(equip.CId); err != nil {
|
||||||
this.module.Errorf("Equip_Check err:%v", err)
|
this.module.Errorf("Equip_Check err:%v", err)
|
||||||
code = pb.ErrorCode_ConfigNoFound
|
code = pb.ErrorCode_ConfigNoFound
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
gole := this.module.configure.GetGlobalConf().EquipmentConsumption[conf.Color-1]
|
||||||
|
if code = this.module.ConsumeRes(session, []*cfg.Gameatn{{A: comm.AttrType, T: comm.ResGold, N: gole}}, true); code != pb.ErrorCode_Success {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if attrlibrarys, err = this.module.configure.GetEquipmentAttrlibraryConfigureById(conf.Addlibrary); err != nil || len(attrlibrarys) == 0 {
|
if attrlibrarys, err = this.module.configure.GetEquipmentAttrlibraryConfigureById(conf.Addlibrary); err != nil || len(attrlibrarys) == 0 {
|
||||||
this.module.Errorf("升级服务错误 读取副词条配置错误!")
|
this.module.Errorf("升级服务错误 读取副词条配置错误!")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user