|
@@ -133,11 +133,11 @@ func (this *Active) LivePage() error {
|
|
checkIsSubscribeFlag = CheckUserIsSubscribe(openid)
|
|
checkIsSubscribeFlag = CheckUserIsSubscribe(openid)
|
|
}
|
|
}
|
|
this.T["checkIsSubscribeFlag"] = checkIsSubscribeFlag
|
|
this.T["checkIsSubscribeFlag"] = checkIsSubscribeFlag
|
|
- this.T["Live_Active_Start"] = util.FormatDateByInt64(&config.ActiveConfig.Live_Active_Start, "2006/01/02/15:04") //直播活动开始时间
|
|
|
|
- this.T["Live_Active_End"] = util.FormatDateByInt64(&config.ActiveConfig.Live_Active_End, "2006/01/02/15:04") //直播活动结束时间
|
|
|
|
- this.T["Live_Preheat_Start"] = config.ActiveConfig.Live_Preheat_Start //预热活动开始时间
|
|
|
|
- this.T["Live_Preheat_End"] = config.ActiveConfig.Live_Preheat_End //预热活动结束时间
|
|
|
|
- this.T["LIVEING"] = false //是否直播中
|
|
|
|
|
|
+ this.T["Live_Active_Start"] = config.ActiveConfig.Live_Active_Start //直播活动开始时间
|
|
|
|
+ this.T["Live_Active_End"] = config.ActiveConfig.Live_Active_End //直播活动结束时间
|
|
|
|
+ this.T["Live_Preheat_Start"] = config.ActiveConfig.Live_Preheat_Start //预热活动开始时间
|
|
|
|
+ this.T["Live_Preheat_End"] = config.ActiveConfig.Live_Preheat_End //预热活动结束时间
|
|
|
|
+ this.T["LIVEING"] = false //是否直播中
|
|
now := time.Now()
|
|
now := time.Now()
|
|
if now.Unix() > config.ActiveConfig.Live_After_Date { //直播活动结束超过提示时间 跳转到vip介绍页
|
|
if now.Unix() > config.ActiveConfig.Live_After_Date { //直播活动结束超过提示时间 跳转到vip介绍页
|
|
return this.Redirect("/front/vipsubscribe/introducePage")
|
|
return this.Redirect("/front/vipsubscribe/introducePage")
|