foliko 1.1.80 → 1.1.82
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 +1 -1
- package/plugins/weixin-plugin.js +9 -8
package/package.json
CHANGED
package/plugins/weixin-plugin.js
CHANGED
|
@@ -413,19 +413,20 @@ class WeixinPlugin extends Plugin {
|
|
|
413
413
|
});
|
|
414
414
|
|
|
415
415
|
// 消息完成
|
|
416
|
-
sessionScope.on('message:complete', async ({ content }) => {
|
|
416
|
+
// sessionScope.on('message:complete', async ({ content }) => {
|
|
417
417
|
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
}
|
|
423
|
-
});
|
|
418
|
+
// if (!content) {
|
|
419
|
+
|
|
420
|
+
// }
|
|
421
|
+
// });
|
|
424
422
|
|
|
425
423
|
// 队列完成
|
|
426
424
|
sessionScope.on('queue:completed', async () => {
|
|
427
425
|
this.stopTypingInterval();
|
|
428
|
-
if
|
|
426
|
+
if(!cleanResponse(lineBuffer.value.trim())){
|
|
427
|
+
const msg = '继续进行下一步';
|
|
428
|
+
await agent.sendMessage(msg, { sessionId, priority: 1 });
|
|
429
|
+
}else if(lineBuffer.value.trim()) {
|
|
429
430
|
await this._sendMessageBatch(originalMsg, userId, lineBuffer.value.trim(), true);
|
|
430
431
|
//log.debug(`[Queue] Remaining buffer: ${lineBuffer.value}`);
|
|
431
432
|
}
|