手动刷

This commit is contained in:
苏尹岚
2020-04-23 11:59:28 +08:00
parent 5a06701afa
commit f993776f19

View File

@@ -2209,7 +2209,7 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) {
} }
if len(thingMaps) > 0 { if len(thingMaps) > 0 {
for _, v := range thingMaps { for _, v := range thingMaps {
time.Sleep(time.Second / 4) time.Sleep(time.Second / 2)
SyncSkus(ctx, nil, []int{0}, []string{"320406"}, nil, []int{int(v.ThingID)}, true) SyncSkus(ctx, nil, []int{0}, []string{"320406"}, nil, []int{int(v.ThingID)}, true)
// _, err = api.JdAPI.RefreshJdDepot(int(utils.Str2Int64(v.VendorThingID))) // _, err = api.JdAPI.RefreshJdDepot(int(utils.Str2Int64(v.VendorThingID)))
} }