|
@@ -2,6 +2,7 @@ package public
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "jfw/config"
|
|
|
"jfw/modules/common/src/qfw/util/jy"
|
|
|
"log"
|
|
|
"qfw/util"
|
|
@@ -170,6 +171,16 @@ func (this *BidSearchExport) PassBidSearchExport() (returnData map[string]interf
|
|
|
endtime := fmt.Sprint(now.Unix())
|
|
|
publishtimeSave = fmt.Sprintf("%s_%s", starttime, endtime)
|
|
|
}
|
|
|
+ //
|
|
|
+ searchTypeSwitch, _ := config.Sysconfig["searchTypeSwitch"].(bool)
|
|
|
+ //标题+全文搜索 搜索类型开关打开 默认搜索全文;(全文包含标题)(单字排除)
|
|
|
+ if searchTypeSwitch && strings.Contains(this.SelectType, "content") && strings.Contains(this.SelectType, "title") {
|
|
|
+ if strings.Contains(this.SelectType, "title,") {
|
|
|
+ this.SelectType = strings.Replace(this.SelectType, "title,", "", -1)
|
|
|
+ } else if strings.Contains(this.SelectType, ",title") {
|
|
|
+ this.SelectType = strings.Replace(this.SelectType, ",title", "", -1)
|
|
|
+ }
|
|
|
+ }
|
|
|
returnData = map[string]interface{}{
|
|
|
"keywords": KeyWordSave,
|
|
|
"publishtime": publishtimeSave,
|