foliko 2.0.14 → 2.0.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foliko",
3
- "version": "2.0.14",
3
+ "version": "2.0.15",
4
4
  "description": "简约的插件化 Agent 框架",
5
5
  "main": "src/index.js",
6
6
  "type": "commonjs",
@@ -522,7 +522,7 @@ class WeixinPlugin extends Plugin {
522
522
  if (!msg || !msg.userId) return
523
523
 
524
524
  // 防止重复处理同一消息
525
- const msgKey = msg.msgId || `${msg.userId}-${msg.createTime}-${msg.type}`
525
+ const msgKey = msg.msgId || `${msg.userId}-${msg.type}-${Date.now()}`
526
526
  if (this._processingMessages.has(msgKey)) {
527
527
  log.debug(` 跳过重复消息: ${msgKey}`)
528
528
  return