|
@@ -2,7 +2,6 @@ package front
|
|
|
|
|
|
import (
|
|
|
acfg "app/config"
|
|
|
- "fmt"
|
|
|
"jfw/public"
|
|
|
qutil "qfw/util"
|
|
|
"regexp"
|
|
@@ -33,24 +32,18 @@ var expertReg = regexp.MustCompile(`potential_cor_list|bigvip_subreport|ent_port
|
|
|
var wisdomReg = regexp.MustCompile(`forecast_list|ai_search|analysis_search|unit_portrayal`)
|
|
|
|
|
|
func (s *BigMemberAction) VIPViewPage(htmlName string) error {
|
|
|
- fmt.Println(htmlName)
|
|
|
userid, _ := s.GetSession("userId").(string)
|
|
|
power, isused, member_give := Power(userid)
|
|
|
if !whiteReg.MatchString(htmlName) {
|
|
|
- fmt.Println("~1")
|
|
|
if member_give == 1 && isActiving() {
|
|
|
- fmt.Println("22")
|
|
|
return s.Redirect("/jyapp/big/page/write_infor")
|
|
|
}
|
|
|
if power <= 0 || //如果不是大会员 跳转至介绍页
|
|
|
(power != 1 && expertReg.MatchString(htmlName)) || //专家版
|
|
|
(wisdomReg.MatchString(htmlName) && power != 1 && power != 2) { //智慧版
|
|
|
- fmt.Println("33!")
|
|
|
return s.Redirect("/jyapp/big/page/landingPage")
|
|
|
}
|
|
|
if isused != 1 { //如果没有首次使用 跳转至首次使用页面
|
|
|
- fmt.Println("!44")
|
|
|
- fmt.Println(htmlName)
|
|
|
return s.Redirect("/jyapp/big/page/init")
|
|
|
}
|
|
|
} else {
|