|
...
|
...
|
@@ -25,7 +25,7 @@ class NewsController extends BaseController |
|
|
|
public function lists(NewsModel $news,NewsCategoryLogic $newsCategoryLogic){
|
|
|
|
$this->map['project_id'] = $this->user['project_id'];
|
|
|
|
$lists = $news->lists($this->map,$this->page,$this->row,$this->order,
|
|
|
|
['id','category_id','operator_id','status','created_at','updated_at','name','sort']);
|
|
|
|
['id','category_id','operator_id','status','created_at','updated_at','name','sort','url']);
|
|
|
|
if(!empty($lists['list'])){
|
|
|
|
foreach ($lists['list'] as $k => $v){
|
|
|
|
$v = $newsCategoryLogic->get_category_name($v);
|
...
|
...
|
|