1
This commit is contained in:
@@ -314,13 +314,12 @@ func createTaoVegetable(api *tao_vegetable.API, storeSkuList []*dao.StoreSkuSync
|
|||||||
ItemTypeNew: utils.Int64ToPointer(tao_vegetable.CreateItemTypeNewVegetable),
|
ItemTypeNew: utils.Int64ToPointer(tao_vegetable.CreateItemTypeNewVegetable),
|
||||||
SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(storeSku.UnitPrice) / float64(100))), // 优先使用skuPrice 靠后SalePrice
|
SkuPrice: utils.String2Pointer(utils.Float64ToStr(float64(storeSku.UnitPrice) / float64(100))), // 优先使用skuPrice 靠后SalePrice
|
||||||
Period: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // 优先使用period 靠后shelf_life
|
Period: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // 优先使用period 靠后shelf_life
|
||||||
MerchantCatCode: utils.String2Pointer(utils.Int2Str(storeSku.NameCategoryID)), // 优先使用 靠后 category_code
|
|
||||||
FragileFlag: utils.Int64ToPointer(model.YES),
|
FragileFlag: utils.Int64ToPointer(model.YES),
|
||||||
DeliveryStorage: utils.String2Pointer(tao_vegetable.CreateItemDeliveryStorage),
|
DeliveryStorage: utils.String2Pointer(tao_vegetable.CreateItemDeliveryStorage),
|
||||||
TemporaryFlag: utils.Int64ToPointer(model.NO),
|
TemporaryFlag: utils.Int64ToPointer(model.NO),
|
||||||
IsOnline: utils.Int64ToPointer(tao_vegetable.CreateIsOnline),
|
IsOnline: utils.Int64ToPointer(tao_vegetable.CreateIsOnline),
|
||||||
BackCatCode: utils.String2Pointer(storeSku.VendorCatID),
|
BackCatCode: utils.String2Pointer(storeSku.VendorCatID),
|
||||||
HmCategoryCode: utils.String2Pointer(storeSku.VendorCatID),
|
MerchantCatCode: utils.String2Pointer(storeSku.VendorCatID), // 优先使用 靠后 category_code
|
||||||
}
|
}
|
||||||
sku.SkuPicUrls = uploadImg(api, []string{storeSku.ImgOrigin, storeSku.Img, storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5, storeSku.DescImg})
|
sku.SkuPicUrls = uploadImg(api, []string{storeSku.ImgOrigin, storeSku.Img, storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5, storeSku.DescImg})
|
||||||
if storeSku.MinOrderCount <= model.YES {
|
if storeSku.MinOrderCount <= model.YES {
|
||||||
|
|||||||
Reference in New Issue
Block a user