1
This commit is contained in:
@@ -823,6 +823,8 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
var failedList []*partner.StoreSkuInfoWithErr
|
||||
failedList, err = storeSkuHandler.UpdateStoreSkusPrice(ctx, storeDetail.VendorOrgCode, storeID, vendorStoreID, batchedStoreSkuList)
|
||||
failedList, err = buildFailedListAndErr(failedList, err, batchedStoreSkuList, nil, storeID, vendorID, "更新门店商品价格")
|
||||
globals.SugarLogger.Debugf("====================batchedStoreSkuList %s", utils.Format4Output(batchedStoreSkuList, false))
|
||||
globals.SugarLogger.Debugf("====================eer %s", utils.Format4Output(failedList, false))
|
||||
if len(failedList) > 0 {
|
||||
task.AddFailedList(failedList)
|
||||
}
|
||||
|
||||
@@ -174,6 +174,7 @@ func (p *PurchaseHandler) UpdateStoreSkusStatus(ctx *jxcontext.Context, vendorOr
|
||||
// UpdateStoreSkusPrice 更新商品价格
|
||||
func (p *PurchaseHandler) UpdateStoreSkusPrice(ctx *jxcontext.Context, vendorOrgCode string, storeID int, vendorStoreID string, storeSkuList []*partner.StoreSkuInfo) (failedList []*partner.StoreSkuInfoWithErr, err error) {
|
||||
api := getAPI(vendorOrgCode, storeID, vendorStoreID)
|
||||
globals.SugarLogger.Debugf("看看走这儿了没,是不是更新 storeSkuList %s", utils.Format4Output(storeSkuList, false))
|
||||
for _, v := range storeSkuList {
|
||||
tiktokSkuId, failedList := getProductSkuId4UpdateStock(api, v, storeID)
|
||||
if len(failedList) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user