Closed andiris29 closed 9 years ago
解析每个sku时出下列错误
"Parse item :45416743130 key: 91464591746 error."
IF的地方拿promotion.promText的地方出错
if (promotion.promText.indexOf("登录") !== -1) {
price = parseFloat(priceInfo[key].price);
} else {
price = parseFloat(priceInfo[key].promotionList[0].price);
}
实际上promotioin里没有promText这个field
promotion
Object
amountPromLimit: 0
amountRestriction: ""
basePriceType: "IcPrice"
canBuyCouponNum: 0
endTime: 1443605999000
extraPromTextType: 0
extraPromType: 0
limitProm: false
postageFree: false
price: "399.00"
promType: "normal"
start: false
startTime: 1439545140000
status: 2
tfCartSupport: false
tmallCartSupport: false
type: "促销价"
unLogBrandMember: false
unLogShopVip: false
unLogTbvip: false
item/sync 结果