mirror of
https://github.com/w7corp/easywechat.git
synced 2025-01-22 19:52:10 +00:00
Updated 接收消息与回复 (markdown)
parent
d8bdecdc7f
commit
ef86a3e716
@ -51,6 +51,7 @@ $server = new Server($appId, $token, $encodingAESKey);
|
|||||||
|
|
||||||
// 监听所有类型
|
// 监听所有类型
|
||||||
$server->on('message', function($message) {
|
$server->on('message', function($message) {
|
||||||
|
// 获取用户openId: $openId = $message->FromUserName;
|
||||||
return Message::make('text')->content('您好!');
|
return Message::make('text')->content('您好!');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user