Selaa lähdekoodia

feat:回退修改rediskey代码

zhangxinlei1996 3 vuotta sitten
vanhempi
commit
895d246b7d
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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")