Commit a8b7a688 authored by 杨培's avatar 杨培

添加外部事件发布服务

parent 2b928bc2
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2019/5/29
* Time: 14:42
*/
namespace internalApi\ucenter;
use internalApi\base\ApiException;
use internalApi\base\Client;
use internalApi\base\ClientException;
class Event extends Client
{
/**
* 用于第三方调用的远程事件发布
*
* @param string $event
* @param int $time
* @param mixed $data
* @throws ApiException|ClientException
*/
public static function publish($event, $time, $data=null)
{
self::call('event.publish', compact('event', 'time', 'data'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment