This commit is contained in:
aozhiwei 2024-11-10 12:35:50 +08:00
parent 059a8db38a
commit bfcfbf5390

View File

@ -1,9 +1,11 @@
package activity package activity
import ( import (
"f5"
"main/constant" "main/constant"
"main/common" "main/common"
"main/vo" "main/vo"
"main/model"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )
@ -15,6 +17,15 @@ func (this *ActivityApi) RollDice(c *gin.Context) {
if s == nil { if s == nil {
return 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 { rspObj := struct {
vo.BaseVo vo.BaseVo
}{} }{}