Authored by zzzzzzz

精选视频必须为2

@@ -47,6 +47,10 @@ const _getBestList = () => { @@ -47,6 +47,10 @@ const _getBestList = () => {
47 }).then(result => { 47 }).then(result => {
48 let list = result && result.data || []; 48 let list = result && result.data || [];
49 49
  50 + if (result && result.data && result.data.length !== 2) {
  51 + result.data = [];
  52 + }
  53 +
50 for (let item of list) { 54 for (let item of list) {
51 switch (item.living) { 55 switch (item.living) {
52 case 0: 56 case 0:
@@ -64,6 +68,7 @@ const _getBestList = () => { @@ -64,6 +68,7 @@ const _getBestList = () => {
64 // 格式化时间 68 // 格式化时间
65 item.starting_time = _formatTime(item.starting_time * 1000, true); 69 item.starting_time = _formatTime(item.starting_time * 1000, true);
66 } 70 }
  71 +
67 return result && result.data || []; 72 return result && result.data || [];
68 }); 73 });
69 }; 74 };