mm_os 1.3.6 → 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.
- package/index.js +2 -3
- package/package.json +5 -5
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.
|
|
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.
|
|
3
|
+
"version": "1.3.8",
|
|
4
4
|
"description": "这是超级美眉服务端框架,用于快速构建应用程序。",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"keywords": [
|
|
15
15
|
"超级美眉",
|
|
16
16
|
"游戏",
|
|
17
|
-
|
|
17
|
+
"系统",
|
|
18
18
|
"物联网",
|
|
19
19
|
"服务端",
|
|
20
20
|
"框架",
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
"函数式",
|
|
22
|
+
"公众号",
|
|
23
23
|
"MM",
|
|
24
24
|
"game",
|
|
25
25
|
"iot",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"mm_ret": "^1.3.7",
|
|
49
49
|
"mm_session": "^1.4.1",
|
|
50
50
|
"mm_statics": "^1.4.0",
|
|
51
|
-
"mm_tpl": "^2.2.
|
|
51
|
+
"mm_tpl": "^2.2.2",
|
|
52
52
|
"mm_xml": "^1.1.3",
|
|
53
53
|
"mosca": "^2.8.3",
|
|
54
54
|
"mqtt": "^4.3.7"
|