Authored by weiqingting

解决bug

... ... @@ -149,9 +149,14 @@ exports.uploadFile = function (req, res) {
formData: req.body
}, function (error, httpResponse, body) {
if (!error && httpResponse.statusCode == 200) {
var json = JSON.parse(body);
json.status = true;
res.json(json);
try{
var json = JSON.parse(body);
json.status = true;
res.json(json);
return;
}catch(err){
res.json({code:500,message:"上传失败"});
}
} else {
res.json(errBackMsg);
}
... ...