京东商城门店库存修改
This commit is contained in:
@@ -1526,11 +1526,6 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
||||
}
|
||||
request.AddCookie(c)
|
||||
client := &http.Client{}
|
||||
deadline := 1
|
||||
d := time.Now().Add(time.Duration(deadline) * time.Second) // deadline max
|
||||
ctx2, cancel := context.WithDeadline(context.Background(), d)
|
||||
defer cancel()
|
||||
request.WithContext(ctx2)
|
||||
fmt.Println(request)
|
||||
response, _ := client.Do(request)
|
||||
defer response.Body.Close()
|
||||
|
||||
Reference in New Issue
Block a user