Просмотр исходного кода

Merge remote-tracking branch 'origin/dev4.6.3.14' into dev4.6.3.14

wangkaiyue 3 лет назад
Родитель
Сommit
c2c085d9aa
3 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      src/db.json
  2. 1 1
      src/jfw/front/shorturl.go
  3. 1 1
      src/jfw/modules/app/src/app/front/shorturl.go

+ 1 - 1
src/db.json

@@ -69,4 +69,4 @@
 			"maxIdleConns": 5
 	    }
     }
-}
+}

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

@@ -271,7 +271,7 @@ func (s *Short) Article(stype, id string) error {
 			return nil
 		}
 		sid := sids[0]
-		watchKey := userId
+		watchKey := "free_article_detail_count" + userId
 		if seeRes := redis.Get("other", watchKey); seeRes != nil && seeRes != "" {
 			if resVal, _ := seeRes.(string); resVal != "" {
 				sidss := strings.Split(resVal, "_")

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

@@ -62,7 +62,7 @@ func (s *Short) Article(stype, id string) error {
 		return s.Redirect("/jyapp/free/swordfish/about", 302)
 	} else {
 		sid = sid_openid[0]
-		watchKey := userId
+		watchKey := "free_article_detail_count" + userId
 		if seeRes := redis.Get("other", watchKey); seeRes != nil && seeRes != "" {
 			if resVal, _ := seeRes.(string); resVal != "" {
 				sidss := strings.Split(resVal, "_")