fix: user payment count check

This commit is contained in:
wangfuduo 2026-07-13 17:58:17 +08:00
parent 1c5c8e1a5b
commit d92607d816
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -13,7 +13,7 @@ const (
) )
const ( const (
FirstRechargeByCoupon = "coupon" RechargeByCoupon = "coupon"
) )
const ( const (