From b8cf189e8f4a84f5ed7c6a8726628af81efc8dfc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 23 Nov 2024 16:27:16 +0800 Subject: [PATCH] 1 --- server/wheelserver/api/v1/activity/activity.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/wheelserver/api/v1/activity/activity.go b/server/wheelserver/api/v1/activity/activity.go index bf6111d5..ee5aca3d 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -8,6 +8,7 @@ import ( "main/model" "math/rand" "main/mt" + "main/service" "github.com/gin-gonic/gin" ) @@ -69,6 +70,14 @@ func (this *ActivityApi) RollDice(c *gin.Context) { if reqJson.ForwardPoint > 0 { rspObj.Point = reqJson.ForwardPoint } + if err, ok := service.Buff.HasBuffEffect(s.GetAccountId(), constant.BUFF_EFFECT_SCORE_CARD_X3); err == nil { + if ok { + score *= 3 + } + } else { + f5.RspErr(c, 500, "server internal error7") + return + } rspObj.GetOrCreateAward().AddItem(constant.VIRTUAL_ITEM_SCORE, score) rspObj.GetOrCreateSideEffect().GetOrCreateUser().FromModel(user) c.JSON(200, rspObj)