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)