mm_os 1.3.7 → 1.3.8

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 +2 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -133,15 +133,15 @@ Soa.prototype.init = function(config) {
133
133
  this.config = Object.assign(this.config, config);
134
134
  this.initData(this.config);
135
135
  this.loadModule(this.config);
136
+ this.initBase(this.config);
136
137
  }
137
138
 
138
139
  /**
139
140
  * 运行基础数据
140
141
  */
141
- Soa.prototype.runBase = function() {
142
+ Soa.prototype.initBase = function(cg) {
142
143
  var middleware = $.middleware;
143
144
  middleware.init();
144
- var cg = this.config;
145
145
  var mqtt, web;
146
146
  if (cg.web && cg.web.state) {
147
147
  web = new WEB(cg.web);
@@ -195,7 +195,6 @@ Soa.prototype.main = async function(state) {
195
195
  * @param {String} state 状态
196
196
  */
197
197
  Soa.prototype.before = async function(state) {
198
- this.runBase();
199
198
  await this.app.initApp();
200
199
  };
201
200
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "1.3.7",
3
+ "version": "1.3.8",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {