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

fix(contact): return false instead of throw when contact is not friend (#509)

上级 bfdffcde
......@@ -141,8 +141,10 @@ export class Bridge {
try {
return await this.proxyWechaty('contactRemarkAsync', contactId, remark)
} catch (e) {
log.error('PuppetWebBridge', 'contactRemarkAsync() exception: %s', e.message)
throw e
log.verbose('PuppetWebBridge', 'contactRemarkAsync() exception: %s', e.message)
// throw e
// Issue #509 return false instead of throw when contact is not a friend.
return false
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册