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
1113bdba
Commit
1113bdba
authored
Jan 25, 2019
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
旧的消息系统已标记为过时
parent
3141d728
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
18 deletions
+12
-18
Message.php
src/ucenter/Message.php
+12
-18
No files found.
src/ucenter/Message.php
View file @
1113bdba
...
@@ -91,11 +91,10 @@ class Message extends Client
...
@@ -91,11 +91,10 @@ class Message extends Client
* @param string $replyedComment
* @param string $replyedComment
* @param string $extra
* @param string $extra
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
,
$extra
=
''
)
public
static
function
addComment
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$commentId
,
$replyUserId
,
$replyedComment
=
''
,
$extra
=
''
)
{
{}
return
self
::
call
(
'message.addComment'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'commentId'
,
'replyUserId'
,
'replyedComment'
,
'extra'
));
}
/**
/**
* @param $userId
* @param $userId
...
@@ -107,11 +106,10 @@ class Message extends Client
...
@@ -107,11 +106,10 @@ class Message extends Client
* @param $likeUserId
* @param $likeUserId
* @param $likedComment
* @param $likedComment
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
addLike
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$sourceId
,
$likeUserId
,
$likedComment
=
''
)
public
static
function
addLike
(
$userId
,
$title
,
$sourceUrl
,
$from
,
$type
,
$sourceId
,
$likeUserId
,
$likedComment
=
''
)
{
{}
return
self
::
call
(
'message.addLike'
,
compact
(
'userId'
,
'title'
,
'sourceUrl'
,
'from'
,
'type'
,
'sourceId'
,
'likeUserId'
,
'likedComment'
));
}
/**
/**
* @param $userId
* @param $userId
...
@@ -122,11 +120,10 @@ class Message extends Client
...
@@ -122,11 +120,10 @@ class Message extends Client
* @param string $content
* @param string $content
* @param int $toUser 0系统消息其它为用户id,多个用户id数组
* @param int $toUser 0系统消息其它为用户id,多个用户id数组
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
add
(
$userId
,
$title
,
$desc
,
$from
,
$type
,
$content
=
''
,
$toUser
=
0
)
public
static
function
add
(
$userId
,
$title
,
$desc
,
$from
,
$type
,
$content
=
''
,
$toUser
=
0
)
{
{}
return
self
::
call
(
'message.add'
,
compact
(
'userId'
,
'title'
,
'desc'
,
'from'
,
'type'
,
'content'
,
'toUser'
));
}
/**
/**
* 删除评论消息
* 删除评论消息
...
@@ -135,11 +132,10 @@ class Message extends Client
...
@@ -135,11 +132,10 @@ class Message extends Client
* @param $type
* @param $type
* @param $commentId
* @param $commentId
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
deleteComment
(
$userId
,
$from
,
$type
,
$commentId
)
public
static
function
deleteComment
(
$userId
,
$from
,
$type
,
$commentId
)
{
{}
return
self
::
call
(
'message.deleteComment'
,
compact
(
'userId'
,
'from'
,
'type'
,
'commentId'
));
}
/**
/**
* 删除点赞
* 删除点赞
...
@@ -148,11 +144,10 @@ class Message extends Client
...
@@ -148,11 +144,10 @@ class Message extends Client
* @param $type
* @param $type
* @param $sourceId
* @param $sourceId
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
deleteLiked
(
$userId
,
$from
,
$type
,
$sourceId
)
public
static
function
deleteLiked
(
$userId
,
$from
,
$type
,
$sourceId
)
{
{}
return
self
::
call
(
'message.deleteLiked'
,
compact
(
'userId'
,
'from'
,
'type'
,
'sourceId'
));
}
/**
/**
* @param $title 消息标题
* @param $title 消息标题
...
@@ -162,11 +157,10 @@ class Message extends Client
...
@@ -162,11 +157,10 @@ class Message extends Client
* @param string $from 来自
* @param string $from 来自
* @param int $type 0 早报 1 求助 2 系统推送
* @param int $type 0 早报 1 求助 2 系统推送
* @return mixed
* @return mixed
* @deprecated
*/
*/
public
static
function
pushMsg
(
$title
,
$url
,
$desc
,
$userId
=
0
,
$from
=
'u'
,
$type
=
0
)
public
static
function
pushMsg
(
$title
,
$url
,
$desc
,
$userId
=
0
,
$from
=
'u'
,
$type
=
0
)
{
{}
return
self
::
call
(
'message.pushMsg'
,
compact
(
'title'
,
'url'
,
'desc'
,
'userId'
,
'from'
,
'type'
));
}
/**
/**
* 以系统会话发送消息
* 以系统会话发送消息
...
...
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