Authored by Targaryen

no-return

... ... @@ -95,14 +95,12 @@ const file = {
if (!file) {
return ctx.body = {
code: 400,
message: '没有接收到上传文件'
};
message: '没有接收到上传的文件包'
};
}
let actPath = _.get(ctx, 'request.body.actPath');
actPath = 'activity/2017/09/famous/007';
if (!actPath) {
return ctx.body = {
code: 400,
... ... @@ -110,10 +108,13 @@ const file = {
};
}
let fileApi = new FileApi();
let result = await fileApi.upload(file, actPath);
await new FileApi().upload(file, actPath);
ctx.body = result;
ctx.body = {
code: 200,
message: '正在处理请求...',
data: {}
};
}
}
... ...