From 31bbc22a990a80ed3f10a7e41e9afa36dc61f7f0 Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 22 Aug 2023 14:20:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E7=BD=B2=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/library/api_usegift.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/library/api_usegift.go b/modules/library/api_usegift.go index 654e7d2e4..b4977d312 100644 --- a/modules/library/api_usegift.go +++ b/modules/library/api_usegift.go @@ -122,6 +122,9 @@ func (this *apiComp) UseGift(session comm.IUserSession, req *pb.LibraryUseGiftRe } } } + if likeStates == 0 { + addExp = int32(math.Floor(float64(addExp / 1000))) + } res = append(res, &cfg.Gameatn{ A: "item",