소스 검색

feat:回退修改rediskey代码

zhangxinlei1996 3 년 전
부모
커밋
895d246b7d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/jfw/front/shorturl.go

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

@@ -281,7 +281,7 @@ func (s *Short) Article(stype, id string) error {
 			return s.Redirect(fmt.Sprintf("/article/content/%s.html", util.CommonEncodeArticle("content", sid)))
 		}
 
-		catchKey := fmt.Sprintf("jypcdetail_%s_%s_%s_%v_%v_%v_%s", sid, stype, userId, isVip, isEntniche, isMember, nodeStr)
+		catchKey := fmt.Sprintf("jypcdetail_%s_%s_%s_%v_%v_%v_%s", userId, stype, sid, isVip, isEntniche, isMember, nodeStr)
 		//缓存读取
 		if res := redis.Get("other", catchKey); res == nil || res == "" {
 			industry := s.GetString("industry")