提交 8454629f 编写于 作者: ruiruibupt's avatar ruiruibupt

code clean

上级 8066f272
......@@ -347,7 +347,7 @@ export class Bridge extends EventEmitter {
throw Error('PuppetPadchatBridge, WXGetContact, cannot get result from websocket server!')
}
if (result.user_name) {
log.warn('PuppetPadchatBridge', 'WXGetContact cannot get user_name')
log.warn('PuppetPadchatBridge', 'WXGetContact cannot get user_name, id: %s', id)
}
return result
}
......
......@@ -355,6 +355,7 @@ export class PuppetPadchat extends Puppet {
this.userId = this.bridge.autoData.user_name // Puppet userId different with WebSocket userId
const user = this.Contact.load(this.userId)
await user.ready()
this.emit('login', user)
log.verbose('PuppetPadchatBridge', 'loginSucceed: Send login to the bot, user_name: %s', this.bridge.username)
......@@ -462,7 +463,7 @@ export class PuppetPadchat extends Puppet {
city : rawPayload.city,
name : rawPayload.nick_name,
province : rawPayload.provincia,
signature : (rawPayload.signature).replace('+', ''), // Stay+Foolish
signature : (rawPayload.signature).replace('+', ' '), // Stay+Foolish
}
return payload
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册