1
This commit is contained in:
@@ -141,7 +141,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
if storeSku.StoreSkuStatus != model.YES { // 未可售的商品不参与修改
|
||||
continue
|
||||
}
|
||||
globals.SugarLogger.Debugf("------------1")
|
||||
// 根据本地商品id获取线上商品是否存在,存在则只创建子商品
|
||||
// 获取本地存储映射关系,获取本地主商品id是否存在
|
||||
var mainProductId int64 = 0
|
||||
@@ -150,7 +149,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
|
||||
if len(localThing) != 0 && localThing[0].VendorThingID != "" {
|
||||
mainProductId = utils.Str2Int64(localThing[0].VendorThingID)
|
||||
}
|
||||
globals.SugarLogger.Debugf("------------2")
|
||||
|
||||
if len(localThing) == 0 {
|
||||
param, failedList2 := makeMainProductSku(db, api, storeSku, storeDetail, storeID, vendorStoreID, syncType)
|
||||
|
||||
Reference in New Issue
Block a user