Authored by 张孝茹

修改报错

... ... @@ -42,6 +42,10 @@ exports.downLoadData = (req, res, next) => {
let codeArr = req.query.codeArr;
let yohoApp = req.yoho.isApp && !req.yoho.isMarsApp;
if (!codeArr) {
return;
}
req.ctx(family).downLoadData(codeArr, yohoApp).then(result => {
res.json(result);
}).catch(next);
... ...
... ... @@ -142,7 +142,7 @@ class familyModel extends global.yoho.BaseModel {
code: 200
}).then((result) => {
if (result.data.mars && result.data.mars.vipLevelList.length > 0) {
if (result.data && result.data.mars && result.data.mars.vipLevelList.length > 0) {
_.forEach(result.data.mars.vipLevelList, function(val) {
val.name = 'Lv.' + val.level;
});
... ...