Browse Source

活动页

zhangxinlei1996 4 years ago
parent
commit
1cfb2c6b5d

+ 2 - 2
src/jfw/front/vipsubscribe.go

@@ -185,8 +185,8 @@ func (s *Subscribepay) Introduce() error {
 	}
 	obj := util.ObjToMap((*m)["o_vipjy"])
 	log.Println("disWord:", s.GetString("disWord"))
-	from := s.GetString("type")
-	if util.IntAll((*m)["i_vip_status"]) > 0 {
+	from := s.GetString("type") //双十一活动 接受参数renew 跳转到介绍页(续费)
+	if util.IntAll((*m)["i_vip_status"]) > 0 && from != "renew" {
 		if s.GetString("disWord") != "" {
 			//分销识别 直接VIP续费
 			if util.IntAll((*m)["i_vip_status"]) == 1 { //试用用户

+ 2 - 1
src/jfw/modules/app/src/app/front/vipsubscribe.go

@@ -96,7 +96,8 @@ func (s *Subscribepay) Introduce() error {
 	if len(*m) == 0 {
 		return s.Redirect("/jyapp/login")
 	}
-	if util.IntAll((*m)["i_vip_status"]) > 0 {
+	from := s.GetString("type") //双十一活动 接受参数renew 跳转到介绍页(续费)
+	if util.IntAll((*m)["i_vip_status"]) > 0 && from != "renew" {
 		if s.GetString("disWord") != "" {
 			//分销识别 直接VIP续费
 			if util.IntAll((*m)["i_vip_status"]) == 1 { //试用用户