提交代码
This commit is contained in:
15
app/Http/WechatHandlers/TextMessageHandler.php
Normal file
15
app/Http/WechatHandlers/TextMessageHandler.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\WechatHandlers;
|
||||
|
||||
use EasyWeChat\Kernel\Contracts\EventHandlerInterface;
|
||||
|
||||
class TextMessageHandler implements EventHandlerInterface
|
||||
{
|
||||
|
||||
public function handle($payload = null)
|
||||
{
|
||||
return '您的留言已经收到';
|
||||
return $payload->Content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user