From d3d402fc1ef8a3bdf8669d0da4a03239e153bb59 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 20 Feb 2024 10:47:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/island/api_refresheroshop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/island/api_refresheroshop.go b/modules/island/api_refresheroshop.go index b8c63e191..f6f5970bf 100644 --- a/modules/island/api_refresheroshop.go +++ b/modules/island/api_refresheroshop.go @@ -33,7 +33,7 @@ func (this *apiComp) RefresHeroShop(session comm.IUserSession, req *pb.IsLandRef } info.Refreshed++ pricekey := this.module.ModuleTools.GetGlobalConf().PuggsyBuy - if res, err := this.module.ModuleTools.GetPriceGroupCost(pricekey, info.Refreshed); len(res) > 0 { + if res, err := this.module.ModuleTools.GetPriceGroupCost(pricekey, info.Refreshed); err == nil { need = append(need, res...) } else { errdata = &pb.ErrorData{