mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 03:22:10 +00:00
Page:
多客服的消息转发
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
多客服的消息转发绝对是超级的简单,转发的消息类型为 transfer
:
use Overtrue\Wechat\Message;
// 转发收到的消息给客服
$server->on('message', function($message) {
return Message::make('transfer');
});
$result = $server->serve();
echo $result;
当然,你也可以指定转发给某一个客服:
return Message::make('transfer')->account($account);
// 或者
return Message::make('transfer')->to($account);
更多关于多客服消息转发:http://mp.weixin.qq.com/wiki/5/ae230189c9bd07a6b221f48619aeef35.html
中文版 English
目录
English 中文版
Table of Contents
Laravel 5 版: overtrue/laravel-wechat
可能由于微信的接口调整导致某些接口不能正常使用,请及时给我反馈,谢谢!https://github.com/overtrue/wechat/issues