1
This commit is contained in:
@@ -121,6 +121,7 @@ func GetSkuDetailList(api *tiktokShop.API, param *MainSku) (*product_listV2_resp
|
||||
// 对于多门店平台来说,storeSkuList中只有SkuID与VendorSkuID有意义
|
||||
// 抖店的商品只管创建,创建接口会返回成功,但是审核的时候不一定成功.当前系统无法判定此商品是否已经创建过了!
|
||||
func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeID int, vendorStoreID string, storeSkuList []*dao.StoreSkuSyncInfo, isCreate bool) (failedList []*partner.StoreSkuInfoWithErr, err error) {
|
||||
globals.SugarLogger.Debugf("============%s", utils.Format4Output(storeSkuList, false))
|
||||
var syncType string
|
||||
db := dao.GetDB()
|
||||
storeDetail, _ := dao.GetStoreDetail(db, storeID, model.VendorIDDD, "")
|
||||
@@ -369,13 +370,15 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
storeSku.VendorSkuID = utils.Int2Str(storeSku.SkuID)
|
||||
continue
|
||||
}
|
||||
globals.SugarLogger.Debugf("==========更新商品 %s", utils.Format4Output(storeSku, false))
|
||||
}
|
||||
return
|
||||
}
|
||||
globals.SugarLogger.Debugf("==========failedList %s", utils.Format4Output(failedList, false))
|
||||
|
||||
if len(failedList) > 0 {
|
||||
err = nil
|
||||
}
|
||||
//if len(failedList) > 0 {
|
||||
// err = nil
|
||||
//}
|
||||
return failedList, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user