提交 c222fa18 编写于 作者: J jaslin

fixed throw new Error('no user') while use wechaty.io

上级 a407fef0
......@@ -218,7 +218,7 @@ export class Io {
case 'update':
log.verbose('Io', 'on(report): %s', ioEvent.payload)
const user = this.setting.wechaty.user()
const user = this.setting.wechaty.puppet ? this.setting.wechaty.puppet.user : null
if (user) {
const loginEvent: IoEvent = {
name: 'login'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册