wechaty-web-panel 1.6.114 → 1.6.115
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/dist/handlers/on-message.js +16 -0
- package/dist/package-json.js +1 -1
- package/package.json +1 -1
- package/src/handlers/on-message.js +16 -0
- package/src/package-json.js +1 -1
|
@@ -297,6 +297,14 @@ async function dispatchFriendFilterByMsgType(that, msg) {
|
|
|
297
297
|
console.log(`发消息人${await contact.name()}: 发起一个转账,请在手机接收`);
|
|
298
298
|
console.log('内容', msg.payload);
|
|
299
299
|
break;
|
|
300
|
+
case that.Message.Type.Channel:
|
|
301
|
+
console.log(`发消息人${await contact.name()}: 收到一个视频号消息`);
|
|
302
|
+
const channelInfo = await msg.toChannel();
|
|
303
|
+
if (config.parseMini && channelInfo.payload) {
|
|
304
|
+
const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`;
|
|
305
|
+
contact.say(channelParse);
|
|
306
|
+
}
|
|
307
|
+
break;
|
|
300
308
|
default:
|
|
301
309
|
break;
|
|
302
310
|
}
|
|
@@ -604,6 +612,14 @@ async function dispatchRoomFilterByMsgType(that, room, msg) {
|
|
|
604
612
|
console.log(`群名: ${roomName} 发消息人: ${contactName} 发起了转账,请在手机查看`);
|
|
605
613
|
console.log('内容', msg.payload);
|
|
606
614
|
break;
|
|
615
|
+
case that.Message.Type.Channel:
|
|
616
|
+
console.log(`群名: ${roomName} 发消息人: ${contactName}: 收到一个视频号消息`);
|
|
617
|
+
const channelInfo = await msg.toChannel();
|
|
618
|
+
if (config.parseMiniRooms.includes(roomName) && channelInfo.payload) {
|
|
619
|
+
const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`;
|
|
620
|
+
room.say(channelParse);
|
|
621
|
+
}
|
|
622
|
+
break;
|
|
607
623
|
default:
|
|
608
624
|
break;
|
|
609
625
|
}
|
package/dist/package-json.js
CHANGED
package/package.json
CHANGED
|
@@ -298,6 +298,14 @@ async function dispatchFriendFilterByMsgType(that, msg) {
|
|
|
298
298
|
console.log(`发消息人${await contact.name()}: 发起一个转账,请在手机接收`)
|
|
299
299
|
console.log('内容', msg.payload)
|
|
300
300
|
break
|
|
301
|
+
case that.Message.Type.Channel:
|
|
302
|
+
console.log(`发消息人${await contact.name()}: 收到一个视频号消息`)
|
|
303
|
+
const channelInfo = await msg.toChannel();
|
|
304
|
+
if (config.parseMini && channelInfo.payload) {
|
|
305
|
+
const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`
|
|
306
|
+
contact.say(channelParse)
|
|
307
|
+
}
|
|
308
|
+
break
|
|
301
309
|
default:
|
|
302
310
|
break
|
|
303
311
|
}
|
|
@@ -611,6 +619,14 @@ async function dispatchRoomFilterByMsgType(that, room, msg) {
|
|
|
611
619
|
console.log(`群名: ${roomName} 发消息人: ${contactName} 发起了转账,请在手机查看`)
|
|
612
620
|
console.log('内容', msg.payload)
|
|
613
621
|
break
|
|
622
|
+
case that.Message.Type.Channel:
|
|
623
|
+
console.log(`群名: ${roomName} 发消息人: ${contactName}: 收到一个视频号消息`)
|
|
624
|
+
const channelInfo = await msg.toChannel();
|
|
625
|
+
if (config.parseMiniRooms.includes(roomName) && channelInfo.payload) {
|
|
626
|
+
const channelParse = `【视频号解析】${eol}${eol}oid:${channelInfo.payload?.objectId}${eol}nid:${channelInfo.payload?.objectNonceId}`
|
|
627
|
+
room.say(channelParse)
|
|
628
|
+
}
|
|
629
|
+
break
|
|
614
630
|
default:
|
|
615
631
|
break
|
|
616
632
|
}
|