提交 953ca62d authored 作者: zyx's avatar zyx

添加 图片上传接口

上级 11bd0fa9
...@@ -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.headers.reqHost, // 直接传 host,会被 kong的nginx接管,不能再调用,所以改为自定义host hostname: req.headers.reqhost, // 直接传 host,会被 kong的nginx接管,不能再调用,所以改为自定义host
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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论