用户数据分表存储

This commit is contained in:
life
2015-11-19 17:56:53 +08:00
parent d26561a089
commit e50b518715
7 changed files with 109 additions and 35 deletions

View File

@@ -1327,7 +1327,7 @@ var State = {
}
};
// note.html调用
// js/main.js 在load plugin后调用
// 实始化页面
// 判断是否登录
function initPage(initedCallback) {

View File

@@ -12,8 +12,10 @@ if(!/login.html/.test(location.href)) {
Server.start();
}
// 数据库初始化
var db = require('db');
db.init();
// db.init();
db.initGlobal();
// 所有service, 与数据库打交道
var Service = {