2222
This commit is contained in:
parent
e292ff784c
commit
140c34db16
@ -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{}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user