Skip to content

Commit

Permalink
🐛 变量名称错误
Browse files Browse the repository at this point in the history
  • Loading branch information
di4urp committed Sep 29, 2020
1 parent aaad165 commit dbb56f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ class client {
const data = Object.assign({
message,
}, envelope.room);
if (!data.message_typedata) {
if (!data.message_type) {
if (data.group_id) {
data.message_typedata = 'group'
data.message_type = 'group'
} else if (data.user_id) {
data.message_typedata = 'private'
data.message_type = 'private'
}
}
this.bot('send_msg', data)
Expand Down

0 comments on commit dbb56f1

Please sign in to comment.