mm_os 2.2.8 → 2.3.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.
@@ -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.between(str, "/");
377
+ clientid = push_topic.right(str).left("/", true);
379
378
  }
380
379
  return clientid;
381
380
  }
@@ -440,6 +439,9 @@ Drive.prototype.handle = async function(push_topic, msg, topic, index) {
440
439
  var id = json.id;
441
440
  if (json.result && id) {
442
441
  var key = this.get_key(json.method, json.clientid, id);
442
+ if (json.method.indexOf("nlock") !== -1) {
443
+ console.log("相应咯", key);
444
+ }
443
445
  var o = await this.exec(json.clientid, key, json.result);
444
446
  if (o) {
445
447
  return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_os",
3
- "version": "2.2.8",
3
+ "version": "2.3.1",
4
4
  "description": "这是超级美眉服务端框架,用于快速构建应用程序。",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -41,13 +41,13 @@
41
41
  "mm_html": "^1.1.6",
42
42
  "mm_koa_proxy": "^1.0.0",
43
43
  "mm_logs": "^1.1.4",
44
- "mm_machine": "^1.7.3",
44
+ "mm_machine": "^1.7.4",
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.1",
48
+ "mm_redis": "^1.4.2",
49
49
  "mm_ret": "^1.3.9",
50
- "mm_session": "^1.4.6",
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",