- change elm vendor_sku_id from skuId to vfoodId.

This commit is contained in:
gazebo
2018-08-10 15:53:35 +08:00
parent f87a98c4ca
commit 5d66c1f6aa

View File

@@ -179,7 +179,7 @@ func (c *OrderController) GetOrder(orderID string) (order *model.GoodsOrder, err
VendorID: model.VendorIDELM,
Count: int(utils.MustInterface2Int64(product["quantity"])),
SkuID: int(utils.Str2Int64WithDefault(utils.Interface2String(product["extendCode"]), 0)),
VendorSkuID: utils.Int64ToStr(utils.MustInterface2Int64(product["skuId"])),
VendorSkuID: utils.Int64ToStr(utils.MustInterface2Int64(product["vfoodId"])),
SkuName: product["name"].(string),
SalePrice: jxutils.StandardPrice2Int(utils.MustInterface2Float64(product["price"])),
Weight: int(math.Round(utils.Interface2FloatWithDefault(product["weight"], 0.0))),