Kaynağa Gözat

fix:redis修改

duxin 3 yıl önce
ebeveyn
işleme
d9c4011110
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  1. 3 3
      src/jfw/front/supsearch.go

+ 3 - 3
src/jfw/front/supsearch.go

@@ -387,7 +387,7 @@ func (p *Pcsearch) PcSearchIndex() error {
 
 //
 func Newbids(p string) []interface{} {
-	pages, _ := redis.Get("other", "index_list"+p).([]interface{})
+	pages, _ := redis.Get("newother", "index_list"+p).([]interface{})
 	if len(pages) == 0 {
 		var list *[]map[string]interface{}
 		subtype := ""
@@ -433,8 +433,8 @@ func Newbids(p string) []interface{} {
 			}
 			pages = append(pages, data[sta:end])
 		}
-		redis.Put("other", "index_list"+p, pages, 60*60*24*2)
-		pages, _ = redis.Get("other", "index_list"+p).([]interface{})
+		redis.Put("newother", "index_list"+p, pages, 60*60*24*2)
+		pages, _ = redis.Get("newother", "index_list"+p).([]interface{})
 	}
 	return pages
 }