This commit is contained in:
邹宗楠
2023-01-05 09:19:20 +08:00
parent 1c390bc99b
commit ba444ea667

View File

@@ -272,7 +272,6 @@ func (p *PurchaseHandler) createOrUpdateStoreSkus(ctx *jxcontext.Context, storeI
} else {
// 主商品存在,直接同步子商品
childrenProductId, err := api.CreateSubProduct(utils.Str2Int64(localThing[0].VendorThingID), utils.Str2Int64(vendorStoreID))
globals.SugarLogger.Debugf("===============err %s", err.Error())
globals.SugarLogger.Debugf("===============childrenProductId %d", childrenProductId)
if err != nil && strings.Contains(err.Error(), "2010004") { // 2010004:主商品非在线审核通过状态,不允许绑定子商品
// 线上本地都存在,但是线上审核不成功,就去更新主商品