|
@@ -31,11 +31,11 @@ func init() {
|
|
|
|
|
|
func (this *active_zb) LivePage() error {
|
|
|
now := time.Now().Unix()
|
|
|
+ userid := util.ObjToString(this.GetSession("userId"))
|
|
|
if now > appconfig.Active_zb.Live_Preheat_Start &&
|
|
|
now < appconfig.Active_zb.Live_Preheat_End {
|
|
|
//预约
|
|
|
//是否已预约查询
|
|
|
- userid := util.ObjToString(this.GetSession("userId"))
|
|
|
if userid == "" {
|
|
|
return this.Redirect("/jyapp/free/swordfish/about", 302)
|
|
|
}
|
|
@@ -55,6 +55,15 @@ func (this *active_zb) LivePage() error {
|
|
|
now < appconfig.Active_zb.Live_Ing_End {
|
|
|
isLiving = true
|
|
|
}
|
|
|
+ //是否是vip用户
|
|
|
+ isVip := false
|
|
|
+ r, _ := public.MQFW.FindById("user", userid, `{"i_vip_status":1}`)
|
|
|
+ if r != nil && len(*r) != 0 {
|
|
|
+ if util.IntAll((*r)["i_vip_status"]) == 2 {
|
|
|
+ isVip = true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.T["isVip"] = isVip
|
|
|
this.T["isLiving"] = isLiving
|
|
|
this.T["buyNum"] = util.Int64All(redis.Get("other", "liveactiveRTB"))
|
|
|
return this.Render("/active/livePage/online.html", &this.T)
|