Commit 569aa494 authored by 谈海涛's avatar 谈海涛

注水方法

parent 5622131a
......@@ -85,6 +85,18 @@ class Thread extends Client
return self::call('thread.getThread',compact('fid','page','num'));
}
/**
* 根据帖子标题获取帖子
* @param string $keywords
* @param int $page
* @param int $num
* @return mixed
*/
public static function getThreadByKeywords($keywords = '', $page, $num)
{
return self::call('thread.getThreadByKeywords',compact('Keywords','page','num'));
}
/**
* 获取板块帖子
* @param int $bid
......@@ -115,4 +127,55 @@ class Thread extends Client
{
return self::call('thread.IsAnswerByThreadIds', compact('threadArr', 'userId'));
}
/**
* 回复评论帖子
* @param $tid
* @param $message
* @param $uid
* @param $pushTime
* @return mixed
*/
public static function setThreadReply($tid, $message, $uid, $pushTime)
{
return self::call('thread.setThreadReply',compact('tid','message','uid', 'pushTime'));
}
/**
* 发布用户动态
*
* @param $message
* @param $uid
* @param $pushTime
* @return mixed
*/
public static function setDynamic($message, $uid, $pushTime)
{
return self::call('thread.setDynamic',compact('message','uid', 'pushTime'));
}
/**
* 点赞帖子
*
* @param $tid
* @param $uid
* @return mixed
*/
public static function addThreadRecommend($tid, $uid)
{
return self::call('thread.addThreadRecommend',compact('tid','uid'));
}
/**
* 点赞评论
*
* @param $tid
* @param $uid
* @param $randomNum
* @return mixed
*/
public static function addPostReview($tid, $uid, $randomNum)
{
return self::call('thread.addPostReview',compact('tid','uid','randomNum'));
}
}
\ 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