Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
a8b7a688
Commit
a8b7a688
authored
May 29, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加外部事件发布服务
parent
2b928bc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
Event.php
src/ucenter/Event.php
+31
-0
No files found.
src/ucenter/Event.php
0 → 100644
View file @
a8b7a688
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment