Authored by 张孝茹

修改

@@ -149,8 +149,7 @@ class familyModel extends global.yoho.BaseModel { @@ -149,8 +149,7 @@ class familyModel extends global.yoho.BaseModel {
149 code: 200 149 code: 200
150 }).then((result) => { 150 }).then((result) => {
151 151
152 - if (result.data && _.get(result, 'data.mars', '') &&  
153 - _.get(result, 'data.mars.vipLevelList', []).length > 0) { 152 + if (_.get(result, 'data.mars.vipLevelList', []).length > 0) {
154 _.forEach(_.get(result, 'data.mars.vipLevelList', []), function(val) { 153 _.forEach(_.get(result, 'data.mars.vipLevelList', []), function(val) {
155 val.name = 'Lv.' + val.level; 154 val.name = 'Lv.' + val.level;
156 }); 155 });
@@ -447,7 +446,7 @@ class familyModel extends global.yoho.BaseModel { @@ -447,7 +446,7 @@ class familyModel extends global.yoho.BaseModel {
447 ]).then((result) => { 446 ]).then((result) => {
448 let familyIndexData = {}; 447 let familyIndexData = {};
449 448
450 - if (result[0] && result[0].data && _.get(result, '[0].code', '') === 200) { 449 + if (_.get(result, '[0].code', '') === 200) {
451 let perInfo = _.get(result, '[0].data', {}); 450 let perInfo = _.get(result, '[0].data', {});
452 451
453 if (perInfo.headIco) { 452 if (perInfo.headIco) {