adjust
This commit is contained in:
parent
b9be30cea1
commit
3612e946bc
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user