1
This commit is contained in:
parent
059a8db38a
commit
bfcfbf5390
@ -1,9 +1,11 @@
|
||||
package activity
|
||||
|
||||
import (
|
||||
"f5"
|
||||
"main/constant"
|
||||
"main/common"
|
||||
"main/vo"
|
||||
"main/model"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
@ -15,6 +17,15 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
|
||||
if s == nil {
|
||||
return
|
||||
}
|
||||
user := new(model.User)
|
||||
nowTime := f5.GetApp().GetRealSeconds()
|
||||
if err, found := user.Find(s.GetAccountId(), nowTime); err != nil {
|
||||
f5.RspErr(c, 500, "server internal error")
|
||||
return
|
||||
} else if !found {
|
||||
f5.RspErr(c, 500, "server internal error")
|
||||
return
|
||||
}
|
||||
rspObj := struct {
|
||||
vo.BaseVo
|
||||
}{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user