Authored by tmq

处理老数据

@@ -99,8 +99,12 @@ class Controller_Default extends Controller_Abstract @@ -99,8 +99,12 @@ class Controller_Default extends Controller_Abstract
99 $page->setOptions(array('afterAppend' => 'setLayout')); 99 $page->setOptions(array('afterAppend' => 'setLayout'));
100 list($offset, $limit) = $page->getLimit(); 100 list($offset, $limit) = $page->getLimit();
101 $list = Facade_News::getList(array(), $offset, $limit, array('手机视频')); 101 $list = Facade_News::getList(array(), $offset, $limit, array('手机视频'));
  102 + $newtag=array("品牌资讯","活动介绍","亮点活动","限量商品");
102 foreach($list as $key=>$news){ 103 foreach($list as $key=>$news){
103 $list[$key]['thumb']=Lib_Images::getImageUrl($news['thumb'], 'source','fragmentimg'); 104 $list[$key]['thumb']=Lib_Images::getImageUrl($news['thumb'], 'source','fragmentimg');
  105 + if(!in_array($news['tag'],$newtag)){
  106 + $list[$key]['tag']='品牌资讯';
  107 + }
104 } 108 }
105 $type = $this->_request->query('type', null); 109 $type = $this->_request->query('type', null);
106 if($type==1){ 110 if($type==1){