1
This commit is contained in:
parent
bfcfbf5390
commit
3b4659239d
@ -26,6 +26,10 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
|||||||
f5.RspErr(c, 500, "server internal error")
|
f5.RspErr(c, 500, "server internal error")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if user.Dice <= 0 {
|
||||||
|
f5.RspErr(c, 1, "dice not enough")
|
||||||
|
return
|
||||||
|
}
|
||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
vo.BaseVo
|
vo.BaseVo
|
||||||
}{}
|
}{}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user