cgserver 6.9.462 → 6.9.464

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.
@@ -120,7 +120,7 @@ class CgMq {
120
120
  }
121
121
  async onMsg(msg) {
122
122
  if (this._onmsg) {
123
- let data = await Core_1.core.safeCall(this._onmsg, msg);
123
+ let data = await Core_1.core.safeCall(this._onmsg, null, msg);
124
124
  return data;
125
125
  }
126
126
  return;
@@ -45,7 +45,7 @@ class Rpc {
45
45
  Log_1.GLog.error({ des: "rpc no cmd", msg });
46
46
  return;
47
47
  }
48
- let data = await Core_1.core.safeCall(func);
48
+ let data = await Core_1.core.safeCall(func, this, ...msg.data?.args, msg);
49
49
  return data;
50
50
  }
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "6.9.462",
3
+ "version": "6.9.464",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",