|
@@ -289,8 +289,8 @@ func searhWebContentent(querymap map[string]string, n *Search, reqType string) (
|
|
|
case "河南", "广西", "黑龙江", "青海", "西藏", "安徽", "山西":
|
|
|
ipcity = consts.Scode[tn.Region]
|
|
|
if len(ipcity) > 0 {
|
|
|
- tmp_res := redis.Get("enterprise", ipcity+"_1")
|
|
|
- tmp_pag := redis.Get("enterprise", ipcity+"_2")
|
|
|
+ tmp_res := redis.Get("enterprise", "ipcity_"+ipcity+"_1")
|
|
|
+ tmp_pag := redis.Get("enterprise", "ipcity_"+ipcity+"_2")
|
|
|
if nil != tmp_res && nil != tmp_pag {
|
|
|
tmp_res1, oks1 := tmp_res.([]interface{})
|
|
|
tmp_pag1, oks2 := tmp_pag.([]interface{})
|
|
@@ -580,8 +580,8 @@ func searhWebContentent(querymap map[string]string, n *Search, reqType string) (
|
|
|
pagination := front.MakePagination(perPage, currentPage, int(total), querymap, "/search/enterprise/"+reqType+"ent_%s.html")
|
|
|
|
|
|
if tempBisOne && len(ipcity) > 0 {
|
|
|
- redis.Put("enterprise", ipcity+"_1", res, 5*86400)
|
|
|
- redis.Put("enterprise", ipcity+"_2", pagination, 5*86400)
|
|
|
+ redis.Put("enterprise", "ipcity_"+ipcity+"_1", res, 5*86400)
|
|
|
+ redis.Put("enterprise", "ipcity_"+ipcity+"_2", pagination, 5*86400)
|
|
|
}
|
|
|
return &res, &pagination
|
|
|
|