|
@@ -489,7 +489,17 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
|
|
|
}
|
|
|
}
|
|
|
var detailKey = util.If((isVip && isOldVip) || isMember || isEntniche || newCanRead, "pay", "free").(string)
|
|
|
- detailKey = util.If((detailKey == "free") && SeeDetailLimit(nil, userId, sid), "saleLeads_free", detailKey).(string)
|
|
|
+ detailKey = func() string {
|
|
|
+ if (isVip && isOldVip) || isMember || isEntniche || newCanRead {
|
|
|
+ return "pay" //可以看全部
|
|
|
+ } else if isVip && !isOldVip {
|
|
|
+ return "new_vip_pay" //新版超级订阅不能看 采购意向
|
|
|
+ } else if SeeDetailLimit(nil, userId, sid) {
|
|
|
+ return "saleLeads_free" //未留资 三篇非采购意向信息;留资后同pay
|
|
|
+ } else {
|
|
|
+ return "free" //已经免费查看三篇招标信息,且未留资。任何信息都不能看 有遮罩
|
|
|
+ }
|
|
|
+ }()
|
|
|
catchKey := fmt.Sprintf("jypcdetail_%s_%s_%s", detailKey, stype, sid)
|
|
|
log.Println(catchKey, "-缓存-", userId)
|
|
|
if res := redis.Get(redisLimitation, catchKey); res == nil || res == "" {
|