浏览代码

活动页

zhangxinlei1996 4 年之前
父节点
当前提交
1cfb2c6b5d
共有 2 个文件被更改,包括 4 次插入3 次删除
  1. 2 2
      src/jfw/front/vipsubscribe.go
  2. 2 1
      src/jfw/modules/app/src/app/front/vipsubscribe.go

+ 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 { //试用用户