Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2cc713

Browse files
committed
首页更精确
1 parent 1260adb commit f2cc713

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/logic/searcher.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ func (this *SearcherLogic) SearchByField(field, value string, start, rows int) (
378378
"fl": []string{"objid,objtype,title,author,uid,pub_time,tags,viewnum,cmtnum,likenum,lastreplyuid,lastreplytime,updated_at,top,nid"},
379379
}
380380

381-
values.Add("q", field+":"+value)
381+
values.Add("q", value)
382+
values.Add("df", field)
382383

383384
logger.Infoln(selectUrl + values.Encode())
384385

0 commit comments

Comments
 (0)