|
@@ -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))
|
|
|
+}
|