Authored by 沈志敏

fix bug

@@ -55,7 +55,9 @@ module.exports = { @@ -55,7 +55,9 @@ module.exports = {
55 cache: true 55 cache: true
56 }); 56 });
57 } 57 }
58 - 58 + if (!data) {
  59 + return;
  60 + }
59 data = data.data; 61 data = data.data;
60 if (data && data.floors) { 62 if (data && data.floors) {
61 data.floors.forEach(function(f) { 63 data.floors.forEach(function(f) {
@@ -31,7 +31,7 @@ module.exports = { @@ -31,7 +31,7 @@ module.exports = {
31 cache: true 31 cache: true
32 }).then(res => { 32 }).then(res => {
33 var data = [], 33 var data = [],
34 - lst = (res.data && res.data.product_list) || []; 34 + lst = (res && res.data && res.data.product_list) || [];
35 35
36 lst.forEach(function(o) { 36 lst.forEach(function(o) {
37 o && data.push(_getProduct(o)); 37 o && data.push(_getProduct(o));