mm_os 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -96,11 +96,11 @@ Soa.prototype.initData = function(config) {
|
|
|
96
96
|
$.Tpl.prototype.init_main = function(cg) {
|
|
97
97
|
if (cg) {
|
|
98
98
|
if (!cg.default_dir) {
|
|
99
|
-
cg.default_dir =
|
|
99
|
+
cg.default_dir = "./template/".fullname(config.web.static_path)
|
|
100
100
|
}
|
|
101
101
|
} else {
|
|
102
102
|
cg = {
|
|
103
|
-
default_dir:
|
|
103
|
+
default_dir: "./template/".fullname(config.web.static_path)
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
this.set_config(cg);
|
|
@@ -125,7 +125,7 @@ Soa.prototype.loadModule = function(config) {
|
|
|
125
125
|
$.app = new App();
|
|
126
126
|
this.com = $.com;
|
|
127
127
|
this.app = $.app;
|
|
128
|
-
|
|
128
|
+
|
|
129
129
|
$.task = $.task_admin('sys');
|
|
130
130
|
if (config.sys) {
|
|
131
131
|
if (config.sys.game) {
|
|
@@ -203,7 +203,7 @@ Soa.prototype.initBase = function(cg) {
|
|
|
203
203
|
$.sql.open();
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
|
|
207
207
|
// 启动计时器
|
|
208
208
|
$.timer.run();
|
|
209
209
|
}
|
|
@@ -230,7 +230,7 @@ Soa.prototype.main = async function(state) {
|
|
|
230
230
|
this.mqtt.run();
|
|
231
231
|
tip += " mqtt";
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
|
|
234
234
|
if (cg.sys && cg.sys.task) {
|
|
235
235
|
console.log('【启动定时任务】');
|
|
236
236
|
$.task.update();
|