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
569aa494
Commit
569aa494
authored
Jul 30, 2019
by
谈海涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
注水方法
parent
5622131a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
+63
-0
Thread.php
src/bbs/Thread.php
+63
-0
No files found.
src/bbs/Thread.php
View file @
569aa494
...
@@ -85,6 +85,18 @@ class Thread extends Client
...
@@ -85,6 +85,18 @@ class Thread extends Client
return
self
::
call
(
'thread.getThread'
,
compact
(
'fid'
,
'page'
,
'num'
));
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
* @param int $bid
...
@@ -115,4 +127,55 @@ class Thread extends Client
...
@@ -115,4 +127,55 @@ class Thread extends Client
{
{
return
self
::
call
(
'thread.IsAnswerByThreadIds'
,
compact
(
'threadArr'
,
'userId'
));
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
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