diff --git a/business/partner/purchase/jdshop/store_sku.go b/business/partner/purchase/jdshop/store_sku.go index 0a9522eb3..ec3eb8eac 100644 --- a/business/partner/purchase/jdshop/store_sku.go +++ b/business/partner/purchase/jdshop/store_sku.go @@ -315,9 +315,9 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j Length: 100, Width: 100, Height: 100, - Weight: 500, - JdPrice: int(storeSku.UnitPrice) / 100, - MarketPrice: int(storeSku.UnitPrice) / 100, + Weight: 0.5, + JdPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), + MarketPrice: jxutils.IntPrice2Standard(storeSku.UnitPrice), } //上传京东图片 @@ -425,7 +425,7 @@ func buildCreateWareParam(storeSku *dao.StoreSkuSyncInfo) (createSkuParamWare *j } attrsPropSku = append(attrsPropSku, attrSku) sku := &jdshopapi.CreateSkuParamSkus{ - JdPrice: int(v.VendorPrice) / 100, + JdPrice: jxutils.IntPrice2Standard(v.VendorPrice), StockNum: 9999, Type: "com.jd.pop.ware.ic.api.domain.sku", Type2: "com.jd.pop.ware.ic.api.domain.Sku",