diff --git a/README.en.md b/README.en.md index dd29b09f..e43c3521 100644 --- a/README.en.md +++ b/README.en.md @@ -140,6 +140,12 @@ res.reply({ } }); ``` +### transfer user message to wechat customer service +transfer the message sent from wechat users to the Wechat Multi Customer Service +```js +res.transfer2CustomerService(); +``` + ### Reply with device messages Specific responses will be made as the message type is device_text or device_event. ```js @@ -158,7 +164,7 @@ app.use('/wechat', wechat(config, function (req, res, next) { // device text res.reply('This message will be pushed onto the device.'); } else if (message.MsgType === 'device_event') { - if (message.Event === 'subscribe_status' || + if (message.Event === 'subscribe_status' || message.Event === 'unsubscribe_status') { //subscribe or unsubscribe the WIFI device status,the reply should be 1 or 0 res.reply(1); diff --git a/README.md b/README.md index ebc67c5b..0b80391c 100644 --- a/README.md +++ b/README.md @@ -148,7 +148,14 @@ res.reply({ MessageAction: 'ranklist' } }); + +``` +### 将用户消息转发到多客服 +将普通微信用户向公众号发的消息,转发到多客服系统 +```js +res.transfer2CustomerService(); ``` + ### 回复设备消息 模块可以对类型为device_text或device_event的消息作出特定格式的响应. ```js