Commit 4edd7d85 by huangchengyi

更新比价

parent 85b82ade
...@@ -9,7 +9,8 @@ import ( ...@@ -9,7 +9,8 @@ import (
) )
func emptySuccessResponse(c *gin.Context) { func emptySuccessResponse(c *gin.Context) {
time.Sleep(2* time.Second) i := 2
time.Sleep(i * time.Second)
c.String(http.StatusOK, "") c.String(http.StatusOK, "")
} }
func errorResponse(c *gin.Context) { func errorResponse(c *gin.Context) {
......
...@@ -21,6 +21,7 @@ func GetParityQuery(ctx *gin.Context,target_goods_name string,target_goods_type ...@@ -21,6 +21,7 @@ func GetParityQuery(ctx *gin.Context,target_goods_name string,target_goods_type
goodsSlice:= php2go.Explode("€",target_goods_name); goodsSlice:= php2go.Explode("€",target_goods_name);
for _,goods_name := range goodsSlice { for _,goods_name := range goodsSlice {
goods_name = common.DrawLetterNum(goods_name);
if target_goods_type == 1 { //精确匹配 if target_goods_type == 1 { //精确匹配
subQuery.Should(elastic.NewTermQuery("auto_goods_name.raw", goods_name)) subQuery.Should(elastic.NewTermQuery("auto_goods_name.raw", goods_name))
}else{ }else{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment