export evernote ok

This commit is contained in:
life
2015-10-26 17:57:00 +08:00
parent c60988da72
commit 45e79528b0
34 changed files with 5185 additions and 2 deletions

View File

@@ -13,6 +13,20 @@ var Api = {
commonService: CommonService,
fileService: FileService,
noteService: NoteService,
userService: UserService,
// 得到当前版本
getCurVersion: function (callback) {
var me = this;
var vFile = me.evtService.getProjectBasePath() + '/data/version';
// fs.writeFileSync('./output.json',JSON.stringify({a:1,b:2}));
try {
var v = JSON.parse(fs.readFileSync(vFile));
return v;
} catch(e) {
return false;
}
},
getConfigFilePath: function() {
return __dirname + '/public/config.js';