Bläddra i källkod

wip:超级订阅续费支持过期续费

wkyuer 2 månader sedan
förälder
incheckning
15b21cce12
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      internal/logic/product/subvip/service.go

+ 1 - 1
internal/logic/product/subvip/service.go

@@ -277,7 +277,7 @@ func vipEntPower(ctx context.Context, entId, entUserId int64, doType, empowerCou
 				if entUserId := gconv.Int64(m["ent_user_id"]); entUserId > 0 {
 					if !EntUpdateRule(entId, gconv.Int64(m["ent_user_id"]), g.Map{
 						"$set": g.Map{
-							"i_vip_status":  common.If(st.Unix() <= time.Now().Unix(), 2, -2), //1试用 2正式 -2 试用到期
+							"i_vip_status":  2, //1试用 2正式 -2 试用到期
 							"l_vip_endtime": et.Unix(),
 						},
 					}) {