本地添加图片成功, add resource 待完善

This commit is contained in:
life
2015-01-28 00:38:34 +08:00
parent 75d2710e05
commit 256ebb6363
11 changed files with 172 additions and 66 deletions

5
node_modules/evt.js generated vendored
View File

@@ -3,6 +3,11 @@ var User = require('user');
function log(o) {console.log(o)}
var Evt = {
port: 8008,
localUrl: 'http://127.0.0.1:8008',
getImageLocalUrl: function(fileId) {
return this.localUrl + '/api/file/getImage?fileId=' + fileId;
},
// 项目绝对地址
getBasePath: function() {
return process.cwd();