mm_os 2.2.9 → 2.3.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.
- package/core/com/mqtt/drive.js +1 -2
- package/package.json +3 -3
package/core/com/mqtt/drive.js
CHANGED
|
@@ -263,7 +263,6 @@ Drive.prototype.pushSync = function(clientid, msg, func, longtime = 0) {
|
|
|
263
263
|
if (!this.drives[clientid]) {
|
|
264
264
|
this.drives[clientid] = {}
|
|
265
265
|
}
|
|
266
|
-
|
|
267
266
|
this.drives[clientid][key] = {
|
|
268
267
|
clientid,
|
|
269
268
|
id,
|
|
@@ -375,7 +374,7 @@ Drive.prototype.get_clientid = function(push_topic, body, msg, topic) {
|
|
|
375
374
|
var clientid = body[cg.clientid] || msg[cg.clientid];
|
|
376
375
|
if (!clientid) {
|
|
377
376
|
var str = topic.left("#");
|
|
378
|
-
clientid = push_topic.
|
|
377
|
+
clientid = push_topic.right(str).left("/", true);
|
|
379
378
|
}
|
|
380
379
|
return clientid;
|
|
381
380
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mm_os",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "这是超级美眉服务端框架,用于快速构建应用程序。",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"mm_mongodb": "^1.4.2",
|
|
46
46
|
"mm_mqtt": "^1.0.6",
|
|
47
47
|
"mm_mysql": "^1.8.0",
|
|
48
|
-
"mm_redis": "^1.4.
|
|
48
|
+
"mm_redis": "^1.4.2",
|
|
49
49
|
"mm_ret": "^1.3.9",
|
|
50
|
-
"mm_session": "^1.4.
|
|
50
|
+
"mm_session": "^1.4.7",
|
|
51
51
|
"mm_statics": "^1.4.2",
|
|
52
52
|
"mm_tpl": "^2.3.9",
|
|
53
53
|
"mm_xml": "^1.1.5",
|