fix: user payment count check
This commit is contained in:
parent
1c5c8e1a5b
commit
d92607d816
|
|
@ -98,11 +98,11 @@ func (u *User) VipCheck() *response.Response {
|
||||||
|
|
||||||
// 首次支付使用 ServiceFirstPayWay,后续使用 ServicePayWay
|
// 首次支付使用 ServiceFirstPayWay,后续使用 ServicePayWay
|
||||||
payWayKey := config.ServicePayWay
|
payWayKey := config.ServicePayWay
|
||||||
if u.sess.GetUserInfo().VipCreateTime == 0 {
|
if u.sess.GetUserInfo().VipExpireTime == 0 {
|
||||||
payWayKey = config.ServiceFirstPayWay
|
payWayKey = config.ServiceFirstPayWay
|
||||||
}
|
}
|
||||||
|
|
||||||
if u.params[payWayKey] == config.FirstRechargeByCoupon {
|
if u.params[payWayKey] == config.RechargeByCoupon {
|
||||||
resp.Message(u.params.Str(config.ServerCouponNotice)).
|
resp.Message(u.params.Str(config.ServerCouponNotice)).
|
||||||
Button(NewButton(u.params).CouponButton()...)
|
Button(NewButton(u.params).CouponButton()...)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ const (
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
FirstRechargeByCoupon = "coupon"
|
RechargeByCoupon = "coupon"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue