From 140c34db16f062f66d006d317bc1e3483815ceb2 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Wed, 18 Sep 2024 14:16:57 +0800 Subject: [PATCH] 2222 --- api/controller/SystemMember.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/api/controller/SystemMember.go b/api/controller/SystemMember.go index 6f3564f..666d785 100644 --- a/api/controller/SystemMember.go +++ b/api/controller/SystemMember.go @@ -43,15 +43,15 @@ func (b *SystemMember) GetSystemMemberLeast(c *gin.Context) { var reductionAmount *float64 // 检测用户是否购买过会员 - //userId := c.GetInt64("UserId") - //if userId != 0 { - // userService := service.UserService{} - // isBuy := userService.CheckUserBuyMember(userId) - // if isBuy == true { - // responses.OkWithData(reductionAmount, c) - // return - // } - //} + userId := c.GetInt64("UserId") + if userId != 0 { + userService := service.UserService{} + isBuy := userService.CheckUserBuyMember(userId) + if isBuy == true { + responses.OkWithData(reductionAmount, c) + return + } + } systemMemberDao := dao.SystemMemberDao{}