|
@@ -9,6 +9,7 @@ import (
|
|
|
"log"
|
|
|
"net/url"
|
|
|
"qfw/util"
|
|
|
+ "qfw/util/jy"
|
|
|
"qfw/util/redis"
|
|
|
"time"
|
|
|
|
|
@@ -125,6 +126,11 @@ func (s *Subscribepay) ToSetInfoTypePage() {
|
|
|
|
|
|
//订阅设置
|
|
|
func (s *Subscribepay) ToSetPage() {
|
|
|
+ userid := util.ObjToString(s.GetSession("userId"))
|
|
|
+ vipMsg := jy.GetBigVipUserBaseMsg(userid, public.Mysql, public.MQFW)
|
|
|
+ if vipMsg.VipStatus <= 0 && vipMsg.Status <= 0 && isInTSguide(userid) { //仅免费用户跳转向导页面
|
|
|
+ s.Redirect("/front/tenderSubscribe/guide")
|
|
|
+ }
|
|
|
nowTime := time.Now().Unix()
|
|
|
if nowTime >= liveActiveStartTime && nowTime < liveActiveEndTime {
|
|
|
s.T["isLiveActive"] = true
|