This commit is contained in:
wucongxing8150 2024-09-18 14:16:57 +08:00
parent e292ff784c
commit 140c34db16

View File

@ -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{}