瀏覽代碼

双十一活动留资

zhangxinlei1996 3 年之前
父節點
當前提交
1680842e6d
共有 3 個文件被更改,包括 18 次插入1 次删除
  1. 2 1
      src/active.json
  2. 1 0
      src/jfw/config/active.go
  3. 15 0
      src/jfw/front/frontRouter.go

+ 2 - 1
src/active.json

@@ -15,5 +15,6 @@
 		"introducePage":"https://www.jianyu360.cn/swordfish/SingleLogin?toHref=https%3A%2F%2Fwww.jianyu360.cn%2Fswordfish%2FSingleLogin%3FtoHref%3Dhttps%3A%2F%2Fwww.jianyu360.cn%2Ffront%2Fvipsubscribe%2FintroducePage&title=%E8%B6%85%E7%BA%A7%E8%AE%A2%E9%98%85",
 		"vipsubscribe":"https://www.jianyu360.cn/swordfish/SingleLogin?toHref=https%3A%2F%2Fwww.jianyu360.cn%2Fswordfish%2FSingleLogin%3FtoHref%3Dhttps%3A%2F%2Fwww.jianyu360.cn%2Ffront%2Fvipsubscribe%2Fvipsubscribe_new?source=wx_double11%26title%3D%E8%B6%85%E7%BA%A7%E8%AE%A2%E9%98%85",
 		"dataPack":" https://www.jianyu360.cn/swordfish/SingleLogin?toHref=https%3A%2F%2Fwww.jianyu360.cn%2Fswordfish%2FSingleLogin%3FtoHref%3Dhttps%3A%2F%2Fwww.jianyu360.cn%2Fswordfish%2FdataPack%2FcreateOrder?source=wx_double11%26title%3D%E6%95%B0%E6%8D%AE%E6%B5%81%E9%87%8F%E5%8C%85"
-	}
+	},
+	"lottery":"https://host.huiju.cool/p/26256"
 }

+ 1 - 0
src/jfw/config/active.go

@@ -16,6 +16,7 @@ type activeConfig struct {
 	ActiveDiscount     float64           `json:"activeDiscount"`     //直播活动折扣
 	DoubleEleven       *doubleEleven     `json:"doubleEleven"`       //双十一
 	ShortUrl           map[string]string `json:"shortUrl"`           //短地址跳转
+	Lottery            string            `json:"lottery"`            //抽奖跳转连接
 }
 
 //双十一活动

+ 15 - 0
src/jfw/front/frontRouter.go

@@ -42,6 +42,9 @@ type CommonRouter struct {
 	//pc大会员
 	bigpcIndex xweb.Mapper `xweb:"/swordfish/page_big_pc/"`
 	bigpcPage  xweb.Mapper `xweb:"/swordfish/page_big_pc/(.*)"`
+
+	//双十一活动留资
+	activityLeads xweb.Mapper `xweb:"/weixin/leads/(.*)"`
 }
 
 func init() {
@@ -219,3 +222,15 @@ func (this *CommonRouter) CouponActive() error {
 	}
 	return this.Redirect(url)
 }
+
+//活动留资
+func (this *CommonRouter) ActivityLeads(sign string) error {
+	userid, _ := this.GetSession("userId").(string)
+	if data, ok := mongodb.FindOne("saleLeads", map[string]interface{}{
+		"userid": userid,
+		"source": sign,
+	}); data != nil && ok && len(*data) > 0 {
+		return this.Redirect(config.ActiveConfig.Lottery)
+	}
+	return this.Redirect(fmt.Sprintf("/weixin/frontPage/bigmember/free/perfect_info?source=%v", sign))
+}