diff --git a/server/wheelserver/api/v1/activity/activity.go b/server/wheelserver/api/v1/activity/activity.go index ad936518..a4da65a6 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -26,6 +26,10 @@ func (this *ActivityApi) RollDice(c *gin.Context) { f5.RspErr(c, 500, "server internal error") return } + if user.Dice <= 0 { + f5.RspErr(c, 1, "dice not enough") + return + } rspObj := struct { vo.BaseVo }{}