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
5b42e662
Commit
5b42e662
authored
Aug 16, 2018
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整注释
parent
035b8d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
Message.php
src/ucenter/Message.php
+2
-14
No files found.
src/ucenter/Message.php
View file @
5b42e662
...
@@ -168,29 +168,17 @@ class Message extends Client
...
@@ -168,29 +168,17 @@ class Message extends Client
return
self
::
call
(
'message.pushMsg'
,
compact
(
'title'
,
'url'
,
'desc'
,
'userId'
,
'from'
,
'type'
));
return
self
::
call
(
'message.pushMsg'
,
compact
(
'title'
,
'url'
,
'desc'
,
'userId'
,
'from'
,
'type'
));
}
}
/**
* 发送互动消息
*
* @param array|int $from 发送者,可指定发送者ID,或使用的系统会话别名与发送者ID组合的数组
* 如:1000 代表使用 UID 1000 的用户发送,而 ['collector', 1000] 为使用 UID 1000 的用户发送,但记入 collector 这个系统会话中
* @param int $to 接收者UID
* @param string $subtitle 副标题
* 如“评论了你:你牛你上天。”,其中“评论了你”就是副标题,“你牛你上天”就是文本内容。
* @param string $text 文本内容
* @param string $url 跳转地址
* @return array
*/
/**
/**
* 以系统会话发送消息
* 以系统会话发送消息
*
*
* @param int|string $systemSessionId 系统会话的ID或别名
* @param int|string $systemSessionId 系统会话的ID或别名
* @param int $from 发送用户
* @param int $from 发送用户
,系统用户请指定0
* @param int $to 接收用户
* @param int $to 接收用户
* @param int $type 消息类型
* @param int $type 消息类型
* @param array $content 消息内容
* @param array $content 消息内容
* @param array|string $ext 消息扩展属性
* @param array|string $ext 消息扩展属性
* @return array
* @return array
* @throws \
Error
Exception
* @throws \
internalApi\base\Api
Exception
*/
*/
public
static
function
sendSystemMessage
(
$systemSessionId
,
$from
,
$to
,
$type
,
$content
,
$ext
=
''
)
public
static
function
sendSystemMessage
(
$systemSessionId
,
$from
,
$to
,
$type
,
$content
,
$ext
=
''
)
{
{
...
...
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