|
@@ -328,7 +328,7 @@ func GetNextInfo(_id string, keyWord ...string) (lastId, nextId string) {
|
|
|
"$lt": time.Now().Unix(),
|
|
|
},
|
|
|
}
|
|
|
- for _, t := range []string{"s_contenttype", "s_secondclassifytype", "s_threeclassifytype"} {
|
|
|
+ for _, t := range []string{"s_contenttype"} {
|
|
|
if tv, _ := (*doc)[t].(string); tv != "" {
|
|
|
commonQuery[t] = tv
|
|
|
}
|
|
@@ -338,6 +338,7 @@ func GetNextInfo(_id string, keyWord ...string) (lastId, nextId string) {
|
|
|
"$regex": keyWord[0],
|
|
|
}
|
|
|
}
|
|
|
+ log.Println("content上下文query:", commonQuery)
|
|
|
dataOn, ok := mongodb.Find("content", commonQuery, `{"releasetime":-1,"l_createdate":-1}`, `{"_id":1,"i_viewnum":1,releasetime":-1,"l_createdate":1}`, false, -1, -1)
|
|
|
if ok && dataOn != nil && len(*dataOn) > 0 {
|
|
|
for k, v := range *dataOn {
|