Commit 269b9a70 by mushishixian

fix

parent 6e52de3a
......@@ -101,7 +101,7 @@ func Recommend(req *common.RecommendRequest) (rsp *common.BomResponse) {
goodsIdList = append(goodsIdList, goodsId)
}
goodsIdListStr = strings.Join(goodsIdList, ",")
goodsList, err := GetGoodsInfoByApi(goodsIdListStr,1)
goodsList, err := GetGoodsInfoByApi(goodsIdListStr, 1)
response.Data = goodsList
response.Flag = req.Flag
return &response
......
package service
import (
<<<<<<< Updated upstream
"fmt"
"github.com/syyongx/php2go"
_ "github.com/tidwall/gjson"
"search_server/model"
"search_server/pkg/config"
"strings"
=======
_ "github.com/tidwall/gjson"
"search_server/model"
>>>>>>> Stashed changes
)
//关键词搜索过期时间
......@@ -39,6 +44,7 @@ func getSkuByGoodsSn(goods_list map[string]*model.LyClearGoodsList, supplier_inf
//
//fmt.Println(productList)
//return productList
<<<<<<< Updated upstream
originGoods := make(map[string]interface{}, 0)
sku_uique_judge := config.Get("redis_all.SKU_UNIQUE_JUDGE").String()
......@@ -61,6 +67,9 @@ func getSkuByGoodsSn(goods_list map[string]*model.LyClearGoodsList, supplier_inf
fmt.Println(originGoods)
return originGoods
=======
return nil
>>>>>>> Stashed changes
}
/*
......
......@@ -3,7 +3,6 @@ package main
import (
"flag"
"fmt"
"github.com/tidwall/gjson"
"search_server/boot"
"search_server/pkg/mysql"
)
......@@ -24,23 +23,4 @@ func main() {
//mysql.Connection()("bom").Table("bin").Find(&result)
fmt.Println(result)
//fmt.Println(model.GetExcludeBrandIds(1))
<<<<<<< Updated upstream
=======
fmt.Println(config.GetSectionValues("supplier_all"))
fmt.Println(config.Cfg.Section("supplier_all").Key("1"))
fmt.Println(gjson.Get(`{"is_new",-1}`,"is_new").Bool())
>>>>>>> Stashed changes
//client := client.
//c := course.NewCourseService("go.micro.api.jtthink.course", client)
//course_rsp, _ := c.ListForTop(context.TODO(), &course.ListRequest{Size: 10})
//fmt.Println(course_rsp.Result)
type Result2 struct {
BusinessName string `json:"business_name"`
}
var result2 []Result2
mysql.Connection("mysql").Raw("SELECT * FROM lie_business").Scan(&result2)
//mysql.GetDB("bom").Table("bin").Find(&result)
fmt.Println(result2)
}
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