Skip to content

Commit

Permalink
fix: error
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz committed Mar 30, 2019
1 parent 2713f77 commit 7b7a849
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Expand Up @@ -11,10 +11,10 @@ var config = {
app.use(express.query());
app.use('/', wechat(config, function (req, res, next) {
var message = req.weixin;
if (message.MsgType === 'device_text') {
res.reply(chemicaltoolsbot(message.Content, 'zh'))
} else if (message.MsgType === 'device_event') {
if (message.MsgType === 'device_event') {
res.reply(chemicaltoolsbot('help', 'zh'))
} else {
res.reply(chemicaltoolsbot(message.Content, 'zh'))
}
}))

Expand Down

0 comments on commit 7b7a849

Please sign in to comment.