wangshan 2 năm trước cách đây
mục cha
commit
581945c8a6
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      src/jfw/front/shorturl.go

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

@@ -297,7 +297,6 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 		privatedata   bool = userPower.PrivateGD                                                          //广东移动DICT 用户
 		isEntService  bool = userPower.Data.Ent.PowerSource > 0 && userPower.Data.Entniche.IsEntPower > 0 //商机管理服务
 		newCanRead         = false
-		isPay              = isVip || isMember || isEntniche
 	)
 	if res != nil && len(*res) > 0 {
 		if isVip && util.Int64All((*res)["l_vip_starttime"]) < util.Int64All(config.Sysconfig["contextOldVipLimit"]) {
@@ -490,7 +489,7 @@ func (s *Short) LoginCommon(userId, stype, id string) error {
 			}
 		}
 		var detailKey = util.If((isVip && isOldVip) || isMember || isEntniche || newCanRead, "pay", "free").(string)
-		detailKey = util.If(!isPay && SeeDetailLimit(nil, userId, sid), "saleLeads_free", detailKey).(string)
+		detailKey = util.If((detailKey == "free") && SeeDetailLimit(nil, userId, sid), "saleLeads_free", detailKey).(string)
 		catchKey := fmt.Sprintf("jypcdetail_%s_%s_%s", detailKey, stype, sid)
 		log.Println(catchKey, "-缓存-", userId)
 		if res := redis.Get(redisLimitation, catchKey); res == nil || res == "" {