mm_os 3.1.1 → 3.1.2

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -197,7 +197,6 @@ OS.prototype.initBase = function(cg) {
197
197
  mqtt.init();
198
198
  this.mqtt = mqtt;
199
199
  }
200
-
201
200
  }
202
201
 
203
202
  /**
@@ -247,7 +246,6 @@ OS.prototype.before = async function(state) {
247
246
  }
248
247
  this.app = $.app_admin('sys');
249
248
  await this.app.update();
250
- await this.app.exec(null, 'init');
251
249
  };
252
250
 
253
251
  /**
@@ -255,7 +253,9 @@ OS.prototype.before = async function(state) {
255
253
  * @param {String} state 状态
256
254
  */
257
255
  OS.prototype.after = async function(state) {
258
- this.app.run(null, 'start');
256
+ this.app.exec(null, 'init').then(() => {
257
+ this.app.run(null, 'start');
258
+ });
259
259
  };
260
260
 
261
261
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -49,7 +49,7 @@
49
49
  "mm_redis": "^1.4.2",
50
50
  "mm_ret": "^1.4.1",
51
51
  "mm_session": "^1.4.9",
52
- "mm_statics": "^1.5.0",
52
+ "mm_statics": "^1.5.1",
53
53
  "mm_tpl": "^2.4.3",
54
54
  "mm_xml": "^1.1.7",
55
55
  "mosca": "^2.8.3",