From d49f221046143db357c6f9f15351ad1d3931784e Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 6 Nov 2024 13:09: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 25b3b600..97551074 100644 --- a/server/wheelserver/api/v1/activity/activity.go +++ b/server/wheelserver/api/v1/activity/activity.go @@ -1,6 +1,9 @@ package activity import ( + "main/constant" + "main/common" + "main/vo" "github.com/gin-gonic/gin" ) @@ -8,4 +11,12 @@ type ActivityApi struct { } func (this *ActivityApi) RollDice(c *gin.Context) { + s := c.MustGet(constant.SESSION_KEY).(common.Session) + if s == nil { + return + } + rspObj := struct { + vo.BaseVo + }{} + c.JSON(200, rspObj) }