|
@@ -98,7 +98,7 @@ func GetBigVipUserBaseMsg(userId string, mysql *mysql.Mysql, mg MongodbSim) *Big
|
|
|
if userId == "" {
|
|
|
return &userPower
|
|
|
}
|
|
|
- userPower.IsUpgrade = true
|
|
|
+ userPower.IsUpgrade = false
|
|
|
userPower.Uid = userId
|
|
|
cacheKey := fmt.Sprintf(PowerCacheKey, userId)
|
|
|
|
|
@@ -141,8 +141,9 @@ func GetBigVipUserBaseMsg(userId string, mysql *mysql.Mysql, mg MongodbSim) *Big
|
|
|
userPower.FreeBuyerPort = redis.GetInt(PowerCacheDb, fmt.Sprintf(PowerCacheBuyerPortKey, userId))
|
|
|
userPower.FreeFile = redis.GetInt(PowerCacheDb, fmt.Sprintf(PowerCacheFileKey, userId))
|
|
|
o_jy := qutil.ObjToMap((*data)["o_jy"])
|
|
|
- if _, ok := (*o_jy)["o_area"]; !ok {
|
|
|
- userPower.IsUpgrade = false
|
|
|
+ //"i_newfree": 1, //新免费用户=>新订阅设置页面 20211122
|
|
|
+ if qutil.IntAll((*o_jy)["i_newfree"]) > 0 {
|
|
|
+ userPower.IsUpgrade = true
|
|
|
}
|
|
|
}
|
|
|
}
|