This commit is contained in:
邹宗楠
2025-04-28 18:24:15 +08:00
parent 93beefb624
commit 2ee20f6bcb

View File

@@ -6562,6 +6562,7 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo
//db = dao.GetDB()
catMap = make(map[string]string)
LoopCatChild funcType
handler, _ = partner.GetPurchasePlatformFromVendorID(model.VendorIDJD).(partner.IPurchasePlatformStoreSkuHandler)
)
jd := jd.GetAPI(jdOrgCode)
@@ -6639,7 +6640,6 @@ func CopyMtToJd(ctx *jxcontext.Context, mtStoreID, mtOrgCode, jdStoreID, jdOrgCo
if param.OutSkuID == "" {
param.OutSkuID = fmt.Sprintf("%d_%d", time.Now().Unix(), param.SkuPrice)
}
handler, _ := partner.GetPurchasePlatformFromVendorID(model.VendorIDDD).(partner.IPurchasePlatformStoreSkuHandler)
vendorCategoryId, _ := handler.GetSkuCategoryIdByName(jdOrgCode, mtSku.Name)
if vendorCategoryId != "" {
param.CategoryID = utils.Str2Int64(vendorCategoryId) // 其他水果