|
@@ -91,10 +91,20 @@ func (m *PcIndex) NewSordfish(flag string) error {
|
|
|
m.T["shareid"] = se.EncodeString(shareid)
|
|
|
m.T["activestart"] = config.ActiveConfig.DoubleEleven.Active_Start
|
|
|
m.T["activeend"] = config.ActiveConfig.DoubleEleven.Active_End
|
|
|
+ m.T["userCard"] = "f"
|
|
|
regex, _ := regexp.Compile("(Android|Mobile)")
|
|
|
var isLogin bool
|
|
|
if util.ObjToString(m.GetSession("userId")) != "" {
|
|
|
isLogin = true
|
|
|
+ userPower := jy.GetBigVipUserBaseMsg(m.Session(), *config.Middleground)
|
|
|
+ switch {
|
|
|
+ case userPower.Status > 0:
|
|
|
+ m.T["userCard"] = "m"
|
|
|
+ case userPower.VipStatus > 0:
|
|
|
+ m.T["userCard"] = "v"
|
|
|
+ case userPower.EntnicheStatus > 0:
|
|
|
+ m.T["userCard"] = "e"
|
|
|
+ }
|
|
|
}
|
|
|
if ispc == 0 && len(regex.FindAllString(m.Header("User-Agent"), -1)) > 0 {
|
|
|
m.T["s_m_openid"] = util.ObjToString(m.GetSession("s_m_openid"))
|