- protect jd order isGift
This commit is contained in:
@@ -154,7 +154,7 @@ func (c *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
||||
if skuCostumeProperty, ok := product["skuCostumeProperty"]; ok {
|
||||
sku.SkuName += skuCostumeProperty.(string)
|
||||
}
|
||||
if product["isGift"].(bool) {
|
||||
if isGift, ok := product["isGift"].(bool); ok && isGift {
|
||||
sku.SkuType = 1
|
||||
}
|
||||
order.Skus = append(order.Skus, sku)
|
||||
|
||||
Reference in New Issue
Block a user