From bfcfbf53909460eb79b996fdbe54b4cfea2bc749 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 10 Nov 2024 12:35:50 +0800 Subject: [PATCH] 1 --- server/wheelserver/api/v1/activity/activity.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/wheelserver/api/v1/activity/activity.go b/server/wheelserver/api/v1/activity/activity.go index 97551074..ad936518 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -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 }{}