|
@@ -246,12 +246,18 @@ func (s *Subscribepay) TrialInfo() error {
|
|
|
|
|
|
//订阅收费购买页面
|
|
|
func (s *Subscribepay) ToPurchasePage(flag string) {
|
|
|
+ userId := util.ObjToString(s.GetSession("userId"))
|
|
|
+ if userId == "" {
|
|
|
+ return
|
|
|
+ }
|
|
|
m, ok := public.MQFW.FindById("user", userId, `{"o_vipjy":1,"i_vip_status":1}`)
|
|
|
if !ok {
|
|
|
- return s.Redirect("/swordfish/about?v=2")
|
|
|
+ s.Redirect("/swordfish/about?v=2")
|
|
|
+ return
|
|
|
}
|
|
|
if util.IntAll((*m)["i_vip_status"]) > 0 && flag == "new" {
|
|
|
- return s.Redirect("/front/vipsubscribe/introducePage")
|
|
|
+ s.Redirect("/front/vipsubscribe/introducePage")
|
|
|
+ return
|
|
|
}
|
|
|
//直播活动
|
|
|
nowTime := time.Now().Unix()
|