syncContent, images, attach [ok]

This commit is contained in:
life
2015-02-10 00:59:53 +08:00
parent 22283f22c7
commit 5d9fb0c1eb
6 changed files with 185 additions and 7 deletions

18
node_modules/server.js generated vendored
View File

@@ -125,6 +125,23 @@ var Server = {
});
},
getImage: function(req, res) {
var me = this;
// fileId
var fileId = url.parse(req.url, true).query['fileId'];
if(!fileId) {
return me.e404(res);
}
File.getImage(fileId, function(fileLocalPath) {
if(path) {
return me.retImage(fileLocalPath, res);
} else {
return me.e404(res);
}
})
},
/*
// 处理用户图片
getImage: function(req, res) {
var me = this;
@@ -178,5 +195,6 @@ var Server = {
}
});
}
*/
};
module.exports = Server;