Commit 03292a97 authored by hujun's avatar hujun

公告

parent 164ba8d6
......@@ -65,9 +65,15 @@ class Notice extends Basic
$m_file = new SFile();
foreach ($data['list'] as $k => $v){
$file_data = $m_file->getFileList('id,file_name', ['new_id'=>$v['id'], 'type'=>1]);
foreach ($file_data as $k2=>$v2) {
$data['list'][$k]['annex_file_path'][] = CURRENT_URL . 'static/business_school_file/' . $v2['annex_file_name'];;
if (empty($file_data)) {
$data['list'][$k]['annex_file_path'] = [];
} else {
foreach ($file_data as $k2=>$v2) {
$data['list'][$k]['annex_file_path'][] = CURRENT_URL . 'static/business_school_file/' . $v2['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