1
This commit is contained in:
@@ -2,6 +2,7 @@ package putils
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
@@ -250,6 +251,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int
|
||||
errMsg = err.Error()
|
||||
}
|
||||
if storeSkuLists, ok := storeSkuList.([]*partner.StoreSkuInfo); ok {
|
||||
globals.SugarLogger.Debugf("=======storeSkuLists== %s", utils.Format4Output(storeSkuLists, false))
|
||||
storeSkuInfoWithErr := &partner.StoreSkuInfoWithErr{
|
||||
StoreSkuInfo: storeSkuLists[0],
|
||||
ErrMsg: errMsg,
|
||||
@@ -259,6 +261,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int
|
||||
}
|
||||
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{
|
||||
SkuID: storeSkuLists[0].SkuID,
|
||||
VendorSkuID: storeSkuLists[0].VendorSkuID,
|
||||
@@ -276,6 +279,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int
|
||||
}
|
||||
failedList = append(failedList, storeSkuInfoWithErr)
|
||||
} else if storeSku, ok := storeSkuList.(*dao.StoreSkuSyncInfo); ok {
|
||||
globals.SugarLogger.Debugf("=======storeSku== %s", utils.Format4Output(storeSkuLists, false))
|
||||
storeSkuInfo := &partner.StoreSkuInfo{
|
||||
SkuID: storeSku.SkuID,
|
||||
VendorSkuID: storeSku.VendorSkuID,
|
||||
@@ -293,6 +297,7 @@ func GetErrMsg2FailedSingleList(storeSkuList interface{}, err error, storeID int
|
||||
}
|
||||
failedList = append(failedList, storeSkuInfoWithErr)
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("=======else== %s", utils.Format4Output(storeSkuLists, false))
|
||||
storeSkuInfoWithErr := &partner.StoreSkuInfoWithErr{
|
||||
ErrMsg: errMsg,
|
||||
StoreID: storeID,
|
||||
|
||||
Reference in New Issue
Block a user