|
@@ -63,12 +63,44 @@ type Subscribepay struct {
|
|
|
wxViewPage xweb.Mapper `xweb:"/vipsubscribe/wx/page/(.*)"` //超级订阅wx
|
|
|
//订阅付费消息提醒中转
|
|
|
msgremind xweb.Mapper `xweb:"/front/vipsubscribe/msgremind"`
|
|
|
+ //邮件推送-登录剑鱼标讯,查看更多招标信息 访问路由
|
|
|
+ mailToPage xweb.Mapper `xweb:"/front/subscribe/mailToPage"`
|
|
|
}
|
|
|
|
|
|
func init() {
|
|
|
xweb.AddAction(&Subscribepay{})
|
|
|
}
|
|
|
|
|
|
+// (1)PC:未登录跳转至官网首页并弹窗提示登录,登录成功后进入【我的订阅】列表页;已登录直接进入【我的订阅】列表页(如有多套订阅,依据推送邮件是哪套订阅进行页面跳转);
|
|
|
+// (2)移动端:未登录跳转至登录页,登录成功后进入【我的订阅】列表页;已登录直接进入【我的订阅】列表页(如有多套订阅,依据推送邮件是哪套订阅进行页面跳转)。
|
|
|
+func (s *Subscribepay) MailToPage() error {
|
|
|
+ sess := s.Session().GetMultiple()
|
|
|
+ userid := util.ObjToString(sess["userId"])
|
|
|
+ //是否是移动端
|
|
|
+ bm := mobileReg.MatchString(s.Header("User-Agent"))
|
|
|
+ vSwitch := s.GetString("vSwitch")
|
|
|
+ if vSwitch == jy.SwitchService.Member || vSwitch == jy.SwitchService.Vip || vSwitch == jy.SwitchService.Entniche {
|
|
|
+ s.SetSession(jy.SwitchService.SessionKey, vSwitch)
|
|
|
+ }
|
|
|
+ page := "/"
|
|
|
+ if bm {
|
|
|
+ if userid == "" {
|
|
|
+ page = fmt.Sprintf("%s%s", config.Sysconfig["h5"].(string), "/jyapp/free/login?url=%2Fjy_mobile%2Ftabbar%2Fsubscribe")
|
|
|
+ } else {
|
|
|
+ page = fmt.Sprintf("%s%s", config.Sysconfig["h5"].(string), "/jy_mobile/tabbar/subscribe")
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if userid == "" {
|
|
|
+ page = "/?nol=1"
|
|
|
+ } else {
|
|
|
+ if vSwitch == "" {
|
|
|
+ vSwitch = "f"
|
|
|
+ }
|
|
|
+ page = fmt.Sprintf("/page_workDesktop/work-bench/app/big/big_subscribe?vt=%s", vSwitch)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return s.Redirect(page, 302)
|
|
|
+}
|
|
|
func (s *Subscribepay) EntSearch() {
|
|
|
s.Render("/weixin/vipsubscribe/vip_entSearch.html")
|
|
|
}
|