|
@@ -1,6 +1,7 @@
|
|
|
package logic
|
|
|
|
|
|
import (
|
|
|
+ "app.yhyue.com/moapp/jypkg/public"
|
|
|
"context"
|
|
|
IC "jyBXCore/api/init"
|
|
|
"jyBXCore/api/internal/svc"
|
|
@@ -9,6 +10,7 @@ import (
|
|
|
"jyBXCore/rpc/type/bxcore"
|
|
|
"log"
|
|
|
"net/http"
|
|
|
+ "strings"
|
|
|
"time"
|
|
|
|
|
|
"app.yhyue.com/moapp/jybase/common"
|
|
@@ -104,6 +106,38 @@ func (l *SearchListLogic) SearchList(req *types.SearchReq) (resp *types.CommonRe
|
|
|
Data: dataAll,
|
|
|
}, nil
|
|
|
}
|
|
|
+ go func() {
|
|
|
+ public.SaveUserSearchLog(l.r, req.UserId, res.Data.Count, strings.ToLower(util.CheckPlatform(l.r)), "超级搜索", map[string]interface{}{
|
|
|
+ "pagenum": req.PageNum,
|
|
|
+ "pagesize": req.PageSize,
|
|
|
+ "search_area": req.Province,
|
|
|
+ "search_city": req.City,
|
|
|
+ "search_subType": req.Subtype,
|
|
|
+ "search_topType": req.TopType,
|
|
|
+ "search_selectType": req.SelectType,
|
|
|
+ "search_price": req.Price,
|
|
|
+ "search_industry": req.Industry,
|
|
|
+ "search_buyerClass": req.BuyerClass,
|
|
|
+ "search_buyerTel": req.BuyerTel,
|
|
|
+ "search_winnerTel": req.WinnerTel,
|
|
|
+ "fileExists": req.FileExists,
|
|
|
+ "searchGroup": func(searchGroup int64) string {
|
|
|
+ switch searchGroup {
|
|
|
+ case 1:
|
|
|
+ return "招标采购公告"
|
|
|
+ case 2:
|
|
|
+ return "超前项目"
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+ }(req.SearchGroup), //搜索分组:默认0:全部;1:招标采购公告;2:超前项目
|
|
|
+ "searchMode": common.If(req.SearchMode == 1, "模糊搜索", "精准搜索"), //搜索模式:0:精准搜索;1:模糊搜索
|
|
|
+ "wordsMode": common.If(req.WordsMode == 1, "包含任意", "包含所有"), //搜索关键词模式;默认0:包含所有,1:包含任意
|
|
|
+ "search_word": req.KeyWords,
|
|
|
+ "additionalWords": req.AdditionalWords,
|
|
|
+ "exclusionWords": req.ExclusionWords,
|
|
|
+ "search_publishtime": req.PublishTime,
|
|
|
+ })
|
|
|
+ }()
|
|
|
return &types.CommonResp{
|
|
|
Err_code: res.ErrCode,
|
|
|
Err_msg: res.ErrMsg,
|