mm_os 1.4.0 → 1.4.1
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.
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"wallet_address": "`wallet_address` like '%{0}%'",
|
|
40
40
|
"admin": "`admin_id` = (SELECT `admin_id` FROM `user_admin` WHERE `name` = '{0}')"
|
|
41
41
|
},
|
|
42
|
-
"
|
|
42
|
+
"query_default": {
|
|
43
43
|
"admin": "`admin_id` = (SELECT `admin_id` FROM `user_admin` WHERE `name` = '客服')"
|
|
44
44
|
},
|
|
45
45
|
"update": {
|
package/index.js
CHANGED
|
@@ -91,16 +91,16 @@ Soa.prototype.initData = function(config) {
|
|
|
91
91
|
// 修改默认模板路径,改为static下,方便读取css和js
|
|
92
92
|
$.Tpl.prototype.init = function(config) {
|
|
93
93
|
if (config) {
|
|
94
|
-
if (!config.
|
|
95
|
-
config.
|
|
94
|
+
if (!config.default_dir) {
|
|
95
|
+
config.default_dir = "./static/template/".fullname();
|
|
96
96
|
}
|
|
97
97
|
} else {
|
|
98
98
|
config = {
|
|
99
|
-
|
|
99
|
+
default_dir: "./static/template/".fullname()
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
this.set_config(config);
|
|
103
|
-
this.dir = config.
|
|
103
|
+
this.dir = config.default_dir;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
// 初始化公共函数
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_os",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1",
|
|
4
4
|
"description": "这是超级美眉服务端框架,用于快速构建应用程序。",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -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.3",
|
|
52
52
|
"mm_xml": "^1.1.3",
|
|
53
53
|
"mosca": "^2.8.3",
|
|
54
54
|
"mqtt": "^4.3.7"
|