Authored by weiqingting

提交

... ... @@ -63,7 +63,8 @@ exports.uploadFile = function (req, res) {
headers: headers
}, function optionalCallback(error, httpResponse, body) {
if (error) {
return console.error('upload failed:', error);
console.error('upload failed:', error);
res.json(errBackMsg);
}
if (!error && httpResponse.statusCode == 200) {
var json = JSON.parse(body);
... ... @@ -116,7 +117,6 @@ exports.uploadFile = function (req, res) {
message: '上传成功',
status: true
});
return;
}
}else{
res.json(errBackMsg);
... ...