ADD:添加后台文章、通知等管理端接口;
FIX:修正若干已知错误;
This commit is contained in:
@@ -57,6 +57,7 @@ class NewsController extends Common
|
||||
}
|
||||
$model = new AcNews();
|
||||
$detail = $model->findOne($id);
|
||||
if(!$detail) $this->result('查询失败,未找到指定内容!');
|
||||
$s = $this->formatDetail($detail->toArray());
|
||||
$this->result('查询成功!', $s, 200);
|
||||
}
|
||||
@@ -188,7 +189,7 @@ class NewsController extends Common
|
||||
|
||||
// 'src="/upload/pics/'
|
||||
$upload_url = 'https://dacms.hiluker.cn';
|
||||
$s['content'] = str_replace('src="/upload/pics/', 'src="' . $upload_url . '/upload/pics/', $s['content']);
|
||||
$s['content'] = str_replace('src="/upload/pics/', 'src="' . $upload_url . '/upload-ctms/pics/', $s['content']);
|
||||
return $s;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user