Authored by 沈志敏

fix bug 过期优惠劵处理

... ... @@ -249,7 +249,7 @@ const _getContent = (data, params, isApp, appVersion) => {
}
// tar note 处理楼层标题
if (fun === 'getCoupon' && _.has(data[i - 1], 'template_name') && data[i - 1].template_name === 'text') {
if (fun === 'getCoupon' && data[i].data.length && _.has(data[i - 1], 'template_name') && data[i - 1].template_name === 'text') {
data[i].data[0].floorTitle = data[i - 1].data;
}
build = processFun[fun](data[i].data, isApp);
... ...