diff --git a/modules/items/api_potionsynthesis.go b/modules/items/api_potionsynthesis.go index 027d482ba..e88df9f51 100644 --- a/modules/items/api_potionsynthesis.go +++ b/modules/items/api_potionsynthesis.go @@ -34,7 +34,7 @@ func (this *apiComp) PotionSynthesis(session comm.IUserSession, req *pb.ItemsPot N: v.N * req.Num, } } - if code = this.module.ConsumeRes(session, configure.Material, true); code != pb.ErrorCode_Success { + if code = this.module.ConsumeRes(session, need, true); code != pb.ErrorCode_Success { return } give = make([]*cfg.Gameatn, 0)