Commit 8bc37669 authored by zhuwei's avatar zhuwei

文件下载

parent 4911a01a
......@@ -216,6 +216,9 @@ class News extends Basic
$where['id'] = $this->params['file_id'];
$m_file = new SFile();
$data = $m_file->getFileById($field, $where);
if (!$data) {
return $this->response(101, "查无数据!");
}
$file_name = $data['file_name'];
$file_former_name = $data['file_former_name'];
......
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