This commit is contained in:
苏尹岚
2021-04-19 17:16:23 +08:00
parent 53c032e710
commit c6cbc1035c

View File

@@ -249,6 +249,9 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
VendorPrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
}
if sku.VendorSkuID == "" {
sku.VendorSkuID = product["app_food_code"].(string)
}
if sku.Weight == 0 {
sku.Weight = 222 // 如果名字里找不到缺省给半斤左右的一个特别值
}