忽略饿百删除不存在错

This commit is contained in:
gazebo
2020-01-20 10:01:03 +08:00
parent 58d436eb56
commit df2b1efa3a

View File

@@ -445,7 +445,9 @@ func SelectStoreSkuListByOpResult(storeSkuList []*partner.StoreSkuInfo, opResult
opResultMap := make(map[int64]string)
if len(opResult.FailedList) > 0 {
for _, v := range opResult.FailedList {
opResultMap[v.SkuID] = v.ErrorMsg
if !(syncType == "删除商品" && ebaiapi.IsMsgSkuNotExist(v.ErrorMsg)) {
opResultMap[v.SkuID] = v.ErrorMsg
}
}
for _, v := range storeSkuList {
if opResultMap[utils.Str2Int64(v.VendorSkuID)] != "" {