From f67ff3de1ec80bed289de79b80a2c180dbfc263d Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 11 Apr 2023 15:23:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=AD=94=E8=8D=AF=E6=B6=88?= =?UTF-8?q?=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/items/api_potionsynthesis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)