提交 91bc466e 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

fix puppeteer puppet

上级 9f90d169
......@@ -639,12 +639,11 @@ export class Bridge extends EventEmitter {
...args : any[]
): Promise<any> {
log.silly('PuppetPuppeteerBridge', 'proxyWechaty(%s%s)',
wechatyFunc,
args.length
? ' , ' + args.join(', ')
: '',
wechatyFunc,
args.length === 0
? ''
: ', ' + args.join(', '),
)
try {
const noWechaty = await this.page.evaluate(() => {
return typeof WechatyBro === 'undefined'
......
......@@ -404,7 +404,8 @@ export class PuppetPuppeteer extends Puppet {
// SYSNOTICE = 9999,
// RECALLED = 10002,
default:
throw new Error('un-supported WebMsgType: ' + webMsgType)
log.warn('PuppetPuppeteer', 'messageTypeFromWeb(%d) un-supported WebMsgType, treat as TEXT', webMsgType)
return MessageType.Text
}
}
......
......@@ -837,6 +837,7 @@
send, // send message to wechat user
getContact,
getMessage,
getUserName,
getMsgImg,
getMsgEmoticon,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册