- handle jd spu sku name
This commit is contained in:
@@ -117,6 +117,9 @@ func (c *PurchaseHandler) GetOrder(orderID string) (order *model.GoodsOrder, err
|
|||||||
SalePrice: utils.MustInterface2Int64(product["skuJdPrice"]),
|
SalePrice: utils.MustInterface2Int64(product["skuJdPrice"]),
|
||||||
PromotionType: int(utils.MustInterface2Int64(product["promotionType"])),
|
PromotionType: int(utils.MustInterface2Int64(product["promotionType"])),
|
||||||
}
|
}
|
||||||
|
if skuCostumeProperty, ok := product["skuCostumeProperty"]; ok {
|
||||||
|
sku.SkuName += skuCostumeProperty.(string)
|
||||||
|
}
|
||||||
if product["isGift"].(bool) {
|
if product["isGift"].(bool) {
|
||||||
sku.SkuType = 1
|
sku.SkuType = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user