1
This commit is contained in:
parent
3b4659239d
commit
4a78275955
@ -29,6 +29,9 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
|||||||
if user.Dice <= 0 {
|
if user.Dice <= 0 {
|
||||||
f5.RspErr(c, 1, "dice not enough")
|
f5.RspErr(c, 1, "dice not enough")
|
||||||
return
|
return
|
||||||
|
}
|
||||||
|
if err := user.DecDice(1); err != nil {
|
||||||
|
|
||||||
}
|
}
|
||||||
rspObj := struct {
|
rspObj := struct {
|
||||||
vo.BaseVo
|
vo.BaseVo
|
||||||
|
@ -51,3 +51,7 @@ func (this *User) Create() error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *User) DecDice(num int32) error {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user