Commit 8d1e0b27 authored by wangjj's avatar wangjj

获取板块帖子

parent d136dce3
...@@ -11,4 +11,4 @@ use internalApi\bbs\Thread; ...@@ -11,4 +11,4 @@ use internalApi\bbs\Thread;
require __DIR__.'/_init.php'; require __DIR__.'/_init.php';
Thread::setDebug(true); Thread::setDebug(true);
print_r(Thread::getThread(139,1,10)); print_r(Thread::getBlockThread(32));
\ No newline at end of file \ No newline at end of file
...@@ -103,4 +103,14 @@ class Thread extends Client ...@@ -103,4 +103,14 @@ class Thread extends Client
{ {
return self::call('thread.getThread',compact('fid','page','num')); return self::call('thread.getThread',compact('fid','page','num'));
} }
/**
* 获取板块帖子
* @param int $bid
* @return mixed
*/
public static function getBlockThread($bid)
{
return self::call('thread.getBlockThread',compact('bid'));
}
} }
\ 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