多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~ public function getCateList() { set_time_limit(0); $limit = I('limit', 10, 'intval'); $lastid = I('lastid', 0, 'intval'); if($lastid>0){ $map['id'] = array('lt', $lastid); } $list = M('weiba_category')->where($map)->order('id desc')->field('id, name,logo,token,isshow')->limit($limit)->select(); foreach ($list as &$vo) { //$vo['name'] = true; //$vo['logo'] = ''; //$vo['img'] = get_cover_url($vo['img']); //$vo['cTime'] = time_format($vo['cTime']); } ~~~