提交 c0a3004a authored 作者: zyx's avatar zyx

添加 图片上传接口

上级 4bf13e56
...@@ -23,7 +23,7 @@ const ckeditorUpload = (req, res) => { ...@@ -23,7 +23,7 @@ const ckeditorUpload = (req, res) => {
req.files[0].fieldname = 'file' req.files[0].fieldname = 'file'
Proxy.reqHttps({ Proxy.reqHttps({
hostname: req.host, hostname: req.headers.reqHost,
path: '/api/lms/util/upload-file', path: '/api/lms/util/upload-file',
method: 'POST', method: 'POST',
data: req.body || {}, data: req.body || {},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论