- 饿百中在不同步至平台模式下,创建sku时,生成假的ID
This commit is contained in:
@@ -273,6 +273,8 @@ func (p *PurchaseHandler) SyncStoreSkus(ctx *jxcontext.Context, parentTask tasks
|
||||
if storeSku.Img != "" {
|
||||
if globals.EnableEbaiStoreWrite {
|
||||
storeSku.EbaiID, err = api.EbaiAPI.SkuCreate(strStoreID, storeSku.SkuID, genSkuParamsFromStoreSkuInfo(storeSku))
|
||||
} else {
|
||||
storeSku.EbaiID = jxutils.GenFakeID()
|
||||
}
|
||||
if err == nil {
|
||||
updateFields = append(updateFields, model.FieldEbaiID)
|
||||
@@ -290,7 +292,7 @@ func (p *PurchaseHandler) SyncStoreSkus(ctx *jxcontext.Context, parentTask tasks
|
||||
updateFields = nil
|
||||
}
|
||||
} else if storeSku.EbaiSyncStatus&model.SyncFlagStoreSkuModifiedMask != 0 {
|
||||
if storeSku.EbaiID == 0 {
|
||||
if jxutils.IsEmptyID(storeSku.EbaiID) {
|
||||
err = fmt.Errorf("京西数据异常,修改一个没有创建的饿百商品:%d, store:%s", storeSku.SkuID, strStoreID)
|
||||
} else {
|
||||
if storeSku.Img != "" {
|
||||
|
||||
Reference in New Issue
Block a user