<?php

namespace App\Api\WechatHandlers;

use EasyWeChat\Kernel\Contracts\EventHandlerInterface;

class LocationMessageHandler implements EventHandlerInterface
{

    public function handle($payload = null)
    {

        $payload->ToUserName;
        $payload->FromUserName;
        $payload->CreateTime;
        $payload->MsgId;

        $payload->Latitude;
        $payload->Longitude;
        $payload->Precision;

        return '上报位置消息';
    }

}
