Commit 1113bdba authored by 杨培's avatar 杨培

旧的消息系统已标记为过时

parent 3141d728
...@@ -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'));
}
/** /**
* 以系统会话发送消息 * 以系统会话发送消息
......
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