|
|
|
@ -328,9 +328,11 @@ func (g *Goods) OpenSearch(c *gin.Context) {
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
fmt.Println("request len:", len(requestBody))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 发送请求的方法调用.
|
|
|
|
|
_, _ = client.Request(
|
|
|
|
|
r1, rr := client.Request(
|
|
|
|
|
tea.String("POST"),
|
|
|
|
|
tea.String("/v3/openapi/apps/"+search_ali.ADD+"/"+search_ali.Table+"/actions/bulk"),
|
|
|
|
|
nil,
|
|
|
|
@ -338,6 +340,11 @@ func (g *Goods) OpenSearch(c *gin.Context) {
|
|
|
|
|
requestBody,
|
|
|
|
|
runTime)
|
|
|
|
|
page += 1
|
|
|
|
|
if rr != nil{
|
|
|
|
|
fmt.Println(rr.Error())
|
|
|
|
|
continue
|
|
|
|
|
}
|
|
|
|
|
fmt.Println(r1)
|
|
|
|
|
}
|
|
|
|
|
}()
|
|
|
|
|
c.String(200, "sync")
|
|
|
|
|