Commit d9a8d30c authored by 蒋林's avatar 蒋林

bbs

parent 6dd78c8a
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
*/ */
require __DIR__.'/../src/autoload.php'; require __DIR__.'/../src/autoload.php';
\internalApi\base\Client::config(include __DIR__.'/../src/client_config_dev.php'); \internalApi\base\Client::config(include __DIR__.'/../src/client_config_test.php');
header('Content-Type: text/html; charset=utf-8'); header('Content-Type: text/html; charset=utf-8');
...@@ -4,7 +4,7 @@ use internalApi\bbs\Thread; ...@@ -4,7 +4,7 @@ use internalApi\bbs\Thread;
require __DIR__.'/_init.php'; require __DIR__.'/_init.php';
//Thread::setDebug(true); Thread::setDebug(true);
$thread = Thread::getHotThreads(14); $thread = Thread::getHotThreads(5);
var_dump($thread); var_dump($thread);
\ No newline at end of file
...@@ -17,4 +17,9 @@ class Thread extends Client ...@@ -17,4 +17,9 @@ class Thread extends Client
{ {
return self::call('thread.getHotThreads', compact('num')); return self::call('thread.getHotThreads', compact('num'));
} }
public static function countThreads($uid)
{
return self::call('thread.countThreads', compact('uid'));
}
} }
\ 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