1
This commit is contained in:
@@ -3,6 +3,7 @@ package cms
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"git.rosy.net.cn/jx-callback/business/partner/purchase/mtwm"
|
||||||
"git.rosy.net.cn/jx-callback/globals"
|
"git.rosy.net.cn/jx-callback/globals"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@@ -181,10 +182,10 @@ func BatchInitData(ctx *jxcontext.Context, fromSku []*mtwmapi.AppFood, toApi *mt
|
|||||||
foodData["min_order_count"] = storeSku.MinOrderCount
|
foodData["min_order_count"] = storeSku.MinOrderCount
|
||||||
foodData["unit"] = storeSku.Unit
|
foodData["unit"] = storeSku.Unit
|
||||||
//todo 增加商品必填属性
|
//todo 增加商品必填属性
|
||||||
//attr := mtwm.SwitchAttr(toApi, vendorStoreID, int64(storeSku.TagID), 0, storeSku.Name)
|
attr := mtwm.SwitchAttr(toApi, vendorStoreID, int64(storeSku.TagID), 0, storeSku.Name)
|
||||||
//if attr != "" {
|
if attr != "" {
|
||||||
foodData["common_attr_value"] = storeSku.CommonAttrValue
|
foodData["common_attr_value"] = attr
|
||||||
//}
|
}
|
||||||
if storeSku.SecondaryCategoryCode != "" {
|
if storeSku.SecondaryCategoryCode != "" {
|
||||||
foodData["category_code"] = storeSku.SecondaryCategoryCode
|
foodData["category_code"] = storeSku.SecondaryCategoryCode
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user