瀏覽代碼

Merge branch 'hotfix/v4.8.45.2_ws' of qmx/jy into hotfix/v4.8.45.2

wangshan 2 年之前
父節點
當前提交
932030adb8
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. 11 1
      src/jfw/front/shorturl.go

+ 11 - 1
src/jfw/front/shorturl.go

@@ -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 == "" {