This commit is contained in:
wucongxing8150 2024-09-18 14:14:15 +08:00
parent b5a8f0614f
commit e292ff784c

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