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
|
@@ -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.
|
|
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
|