This commit is contained in:
yangduo 2024-12-12 17:17:57 +08:00
parent b9be30cea1
commit 3612e946bc

View File

@ -73,6 +73,7 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
rspObj := struct {
vo.BaseVo
Point int32 `json:"point"`
AwardGrid int32 `json:"award_grid"`
}{}
rspObj.Point = int32(1 + rand.Intn(6))
if reqJson.ForwardPoint > 0 {
@ -128,6 +129,7 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
}
scoreaward = false
rspObj.AwardGrid = 1
}
}