修改会员续费的时候接口没有返回优惠券相关信息
This commit is contained in:
parent
95e704e565
commit
997ca33dc4
@ -190,14 +190,6 @@ func (r *UserCouponService) GetUserUsableMemberCoupon(userId, systemMemberId int
|
|||||||
return nil, errors.New("用户错误")
|
return nil, errors.New("用户错误")
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检测用户会员
|
|
||||||
userService := &UserService{}
|
|
||||||
isMember := userService.CheckUserMember(user)
|
|
||||||
if isMember == true {
|
|
||||||
// 会员无需使用优惠卷
|
|
||||||
return nil, nil
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取用户优惠卷
|
// 获取用户优惠卷
|
||||||
UserCouponDao := dao.UserCouponDao{}
|
UserCouponDao := dao.UserCouponDao{}
|
||||||
|
|
||||||
@ -210,6 +202,7 @@ func (r *UserCouponService) GetUserUsableMemberCoupon(userId, systemMemberId int
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检测用户是否购买过会员
|
// 检测用户是否购买过会员
|
||||||
|
userService := &UserService{}
|
||||||
isBuy := userService.CheckUserBuyMember(userId)
|
isBuy := userService.CheckUserBuyMember(userId)
|
||||||
if isBuy == false {
|
if isBuy == false {
|
||||||
// 未购买过-检测是否存在首单优惠价格
|
// 未购买过-检测是否存在首单优惠价格
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user