This commit is contained in:
邹宗楠
2022-10-09 15:47:46 +08:00
parent 9c2b64733f
commit 5864cf0276
2 changed files with 46 additions and 30 deletions

View File

@@ -260,6 +260,16 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
} else if storeSku, ok := storeSkuList.(*partner.StoreSkuInfo); ok {
globals.SugarLogger.Debugf("=======storeSku== %s", utils.Format4Output(storeSkuLists, false))
storeSkuInfoWithErr := &partner.StoreSkuInfoWithErr{
StoreSkuInfo: storeSku,
ErrMsg: errMsg,
StoreID: storeID,
VendoreName: vendorName,
SyncType: syncType,
}
failedList = append(failedList, storeSkuInfoWithErr)
} else if storeSkuLists, ok := storeSkuList.([]*dao.StoreSkuSyncInfo); ok {
globals.SugarLogger.Debugf("=======storeSkuLists StoreSkuSyncInfo== %s", utils.Format4Output(storeSkuLists, false))
storeSkuInfo := &partner.StoreSkuInfo{