京东恢复id
This commit is contained in:
@@ -2225,7 +2225,6 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) {
|
||||
searchResults = append(searchResults, v.(*jdapi.SearchDeleteWareResult))
|
||||
}
|
||||
for _, v := range searchResults {
|
||||
time.Sleep(time.Second)
|
||||
param := &jdapi.OpSkuParam{
|
||||
TraceID: ctx.GetTrackInfo(),
|
||||
OutSkuID: utils.Int2Str(v.SkuID),
|
||||
@@ -2236,7 +2235,6 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) {
|
||||
globals.SugarLogger.Debugf("RefreshJdDepot UpdateSku2", err.Error())
|
||||
continue
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
api.JdAPI.RefreshJdDepot(v.JdID)
|
||||
sql := `
|
||||
UPDATE thing_map SET vendor_thing_id = ?, sync_status = ?
|
||||
@@ -2249,7 +2247,6 @@ func RefreshJdDepot(ctx *jxcontext.Context) (err error) {
|
||||
globals.SugarLogger.Debugf("RefreshJdDepot SyncSkus", err.Error())
|
||||
continue
|
||||
}
|
||||
time.Sleep(time.Second)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user