Authored by 徐炜

增强代码健壮性

... ... @@ -43,8 +43,13 @@ const _processBrandNames = (list) => {
brandName: obj.brandDomain && obj.brandName.toLowerCase()
});
if (obj && obj.brandDomain) {
brandDomainMap[obj.brandDomain.toLowerCase()] = obj.brandDomain.toLowerCase();
}
if (obj && obj.brandName && obj.brandDomain) {
brandNameMap[obj.brandName.toLowerCase()] = obj.brandDomain.toLowerCase();
}
});
});
... ...