diff --git a/server/wheelserver/api/v1/activity/activity.go b/server/wheelserver/api/v1/activity/activity.go index 1f7f13c1..69aef563 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -79,6 +79,11 @@ func (this *ActivityApi) RollDice(c *gin.Context) { f5.RspErr(c, 500, "server internal error7") return } + gridMeta := mt.Table.MapGrid.GetById(int64(user.CurrGrid + rspObj.Point)) + if gridMeta == nil { + 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)