Commit 44789233 authored by wangjj's avatar wangjj

论坛问题互助 及 维修日记 分页

parent 615ebc98
......@@ -11,4 +11,4 @@ use internalApi\bbs\Thread;
require __DIR__.'/_init.php';
Thread::setDebug(true);
print_r(Thread::getThreadDigest());
\ No newline at end of file
print_r(Thread::getMaintenanceLog(2));
\ No newline at end of file
......@@ -51,9 +51,9 @@ class Thread extends Client
* 获取未解决问题
* @return mixed
*/
public static function getQuestionList($num=100)
public static function getQuestionList($page=1,$num=10)
{
return self::call('thread.getQuestionList',compact('num'));
return self::call('thread.getQuestionList',compact('page','num'));
}
......@@ -61,9 +61,9 @@ class Thread extends Client
* 获取问题日志
* @return mixed
*/
public static function getMaintenanceLog($num = 1)
public static function getMaintenanceLog($page=1,$num=10)
{
return self::call('thread.getMaintenanceLog',compact('num'));
return self::call('thread.getMaintenanceLog',compact('page','num'));
}
/**
......
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