1
This commit is contained in:
@@ -312,24 +312,25 @@ func createTaoVegetable(ctx *jxcontext.Context, api *tao_vegetable.API, storeSku
|
||||
DeliverySpec: utils.String2Pointer(utils.Int2Str(model.YES)),
|
||||
MemberPrice: price,
|
||||
Storage: utils.String2Pointer(tao_vegetable.CreateStorage),
|
||||
PickFloatRate: utils.String2Pointer(utils.Int2Str(model.NO)), // ? 0
|
||||
ForbidReceiveDays: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // ? 7
|
||||
ForbidSalesDays: utils.Int64ToPointer(model.NO), // ? 0
|
||||
OverloadRate: utils.String2Pointer(utils.Int2Str(model.NO)), // ? 0
|
||||
WarnDays: utils.Int64ToPointer(model.NO), // ? 0
|
||||
FixedFlag: utils.Int64ToPointer(model.NO), // ? 0
|
||||
PurchaseSpec: utils.String2Pointer(utils.Int2Str(model.YES)), // ? 1
|
||||
//PurchaseUnit: utils.String2Pointer(storeSku.Unit), // ? 同上
|
||||
PurchaseUnit: utils.String2Pointer("份"), // ? 同上
|
||||
LabelStyleType: utils.String2Pointer(tao_vegetable.CreateLabelStyleType), // 库存单位
|
||||
ItemTypeNew: utils.Int64ToPointer(tao_vegetable.CreateItemTypeNewVegetable),
|
||||
SkuPrice: price, // 优先使用skuPrice 靠后SalePrice
|
||||
Period: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // 优先使用period 靠后shelf_life
|
||||
FragileFlag: utils.Int64ToPointer(model.YES),
|
||||
DeliveryStorage: utils.String2Pointer(tao_vegetable.CreateItemDeliveryStorage),
|
||||
TemporaryFlag: utils.Int64ToPointer(model.NO),
|
||||
IsOnline: utils.Int64ToPointer(tao_vegetable.CreateIsOnline),
|
||||
MerchantCatCode: utils.String2Pointer(storeSku.VendorCatID), // 优先使用 靠后 category_code
|
||||
PickFloatRate: utils.String2Pointer(utils.Int2Str(model.NO)), // ? 0
|
||||
ForbidReceiveDays: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // ? 7
|
||||
ForbidSalesDays: utils.Int64ToPointer(model.NO), // ? 0
|
||||
OverloadRate: utils.String2Pointer(utils.Int2Str(model.NO)), // ? 0
|
||||
WarnDays: utils.Int64ToPointer(model.NO), // ? 0
|
||||
FixedFlag: utils.Int64ToPointer(model.NO), // ? 0
|
||||
PurchaseSpec: utils.String2Pointer(utils.Int2Str(model.YES)), // ? 1
|
||||
PurchaseUnit: utils.String2Pointer("份"), // ? 同上
|
||||
LabelStyleType: utils.String2Pointer(tao_vegetable.CreateLabelStyleType), // 库存单位
|
||||
ItemTypeNew: utils.Int64ToPointer(tao_vegetable.CreateItemTypeNewVegetable),
|
||||
SkuPrice: price, // 优先使用skuPrice 靠后SalePrice
|
||||
Period: utils.Int64ToPointer(tao_vegetable.CreateShelfLife), // 优先使用period 靠后shelf_life
|
||||
FragileFlag: utils.Int64ToPointer(model.YES),
|
||||
DeliveryStorage: utils.String2Pointer(tao_vegetable.CreateItemDeliveryStorage),
|
||||
TemporaryFlag: utils.Int64ToPointer(model.NO),
|
||||
IsOnline: utils.Int64ToPointer(tao_vegetable.CreateIsOnline),
|
||||
MerchantCatCode: utils.String2Pointer(storeSku.VendorCatID), // 优先使用 靠后 category_code
|
||||
RichText: utils.String2Pointer(storeSku.Name),
|
||||
AllowAppSale: utils.Int64ToPointer(tao_vegetable.IsAllowAppSale),
|
||||
}
|
||||
sku.SkuPicUrls = uploadImg(api, []string{storeSku.ImgOrigin, storeSku.Img, storeSku.Img2, storeSku.Img3, storeSku.Img4, storeSku.Img5, storeSku.DescImg})
|
||||
if sku.SkuPicUrls == nil {
|
||||
|
||||
Reference in New Issue
Block a user