Commit 71e21390 authored by zhuwei's avatar zhuwei

公告添加附件路径

parent 962c3592
......@@ -56,11 +56,15 @@ class Notice extends Basic
$where['a.title'] = ['LIKE', '%' . $this->params['title'] . '%'];
}
$field = 'a.id,a.title,a.content,a.create_time,b.name';
$field = 'a.id,a.title,a.content,a.create_time,a.create_time,annex_file_name,b.name';
$where['a.status'] = 0;
$where['a.type'] = 1;
$data['list'] = $this->m_push->getListAgent($pageNo, $pageSize, 'id DESC', $field, $where);
foreach ($data['list'] as $k => $v){
//dump($v);
$data['list'][$k]['annex_file_path'] = CURRENT_URL . 'static/business_school_file/' . $v['annex_file_name'];;
}
$data['total'] = $this->m_push->getListAgentTotal($where);
return $this->response(200, "", $data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment